From 1ba1da579022d64ead3a6aced8a1f49bd978c0a0 Mon Sep 17 00:00:00 2001 From: Cursed Entertainment <110344485+CursedPrograms@users.noreply.github.com> Date: Fri, 4 Oct 2024 20:53:17 +0200 Subject: [PATCH] Add files via upload --- clear-commits.bat | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 clear-commits.bat diff --git a/clear-commits.bat b/clear-commits.bat new file mode 100644 index 0000000..75f9428 --- /dev/null +++ b/clear-commits.bat @@ -0,0 +1,18 @@ +@echo off +REM Switch to a new orphan branch +git checkout --orphan new_branch + +REM Stage all changes +git add . + +REM Commit changes +git commit -m "new_commit" + +REM Delete the old main branch +git branch -D main + +REM Rename the new branch to main +git branch -m main + +REM Force push to the remote main branch +git push -f origin main