From 02b982bb40b32192694b239edd276b3665bb91c6 Mon Sep 17 00:00:00 2001 From: Cursed Entertainment <110344485+CursedPrograms@users.noreply.github.com> Date: Sat, 5 Oct 2024 17:53:14 +0200 Subject: [PATCH] Add files via upload --- clear-commits.ps1 | 17 +++++++++++++++++ clear-commits.sh | 19 +++++++++++++++++++ 2 files changed, 36 insertions(+) create mode 100644 clear-commits.ps1 create mode 100644 clear-commits.sh diff --git a/clear-commits.ps1 b/clear-commits.ps1 new file mode 100644 index 0000000..db7f511 --- /dev/null +++ b/clear-commits.ps1 @@ -0,0 +1,17 @@ +# Switch to a new orphan branch +git checkout --orphan new_branch + +# Stage all changes +git add . + +# Commit changes +git commit -m "new_commit" + +# Delete the old main branch +git branch -D main + +# Rename the new branch to main +git branch -m main + +# Force push to the remote main branch +git push -f origin main \ No newline at end of file diff --git a/clear-commits.sh b/clear-commits.sh new file mode 100644 index 0000000..7b8f040 --- /dev/null +++ b/clear-commits.sh @@ -0,0 +1,19 @@ +#!/bin/bash + +# Switch to a new orphan branch +git checkout --orphan new_branch + +# Stage all changes +git add . + +# Commit changes +git commit -m "new_commit" + +# Delete the old main branch +git branch -D main + +# Rename the new branch to main +git branch -m main + +# Force push to the remote main branch +git push -f origin main \ No newline at end of file