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 4793c80 commit b8f213d
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 b8f213d

Please sign in to comment.