Skip to content

Commit

Permalink
Add files via upload
Browse files Browse the repository at this point in the history
  • Loading branch information
CursedPrograms authored Oct 5, 2024
1 parent 62924ab commit 02b982b
Show file tree
Hide file tree
Showing 2 changed files with 36 additions and 0 deletions.
17 changes: 17 additions & 0 deletions clear-commits.ps1
Original file line number Diff line number Diff line change
@@ -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
19 changes: 19 additions & 0 deletions clear-commits.sh
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit 02b982b

Please sign in to comment.