We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f32e130 commit 37f85a8Copy full SHA for 37f85a8
2 files changed
clear-commits.bat
@@ -0,0 +1,18 @@
1
+@echo off
2
+REM Switch to a new orphan branch
3
+git checkout --orphan new_branch
4
+
5
+REM Stage all changes
6
+git add .
7
8
+REM Commit changes
9
+git commit -m "new_commit"
10
11
+REM Delete the old main branch
12
+git branch -D main
13
14
+REM Rename the new branch to main
15
+git branch -m main
16
17
+REM Force push to the remote main branch
18
+git push -f origin main
clear-commits.ps1
@@ -0,0 +1,17 @@
+# Switch to a new orphan branch
+# Stage all changes
+# Commit changes
+# Delete the old main branch
+# Rename the new branch to main
+# Force push to the remote main branch
0 commit comments