We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4d671cc commit c1cd559Copy full SHA for c1cd559
2 files changed
clear-commits.ps1
@@ -0,0 +1,17 @@
1
+# Switch to a new orphan branch
2
+git checkout --orphan new_branch
3
+
4
+# Stage all changes
5
+git add .
6
7
+# Commit changes
8
+git commit -m "new_commit"
9
10
+# Delete the old main branch
11
+git branch -D main
12
13
+# Rename the new branch to main
14
+git branch -m main
15
16
+# Force push to the remote main branch
17
+git push -f origin main
clear-commits.sh
@@ -0,0 +1,19 @@
+#!/bin/bash
18
19
0 commit comments