Skip to content

Commit 03154b7

Browse files
Add files via upload
1 parent 20ead70 commit 03154b7

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed

clear-commits.ps1

+17
Original file line numberDiff line numberDiff line change
@@ -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

0 commit comments

Comments
 (0)