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 0c83e63 commit 2825f33
Show file tree
Hide file tree
Showing 3 changed files with 54 additions and 0 deletions.
18 changes: 18 additions & 0 deletions clear-commits.bat
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
@echo off
REM Switch to a new orphan branch
git checkout --orphan new_branch

REM Stage all changes
git add .

REM Commit changes
git commit -m "new_commit"

REM Delete the old main branch
git branch -D main

REM Rename the new branch to main
git branch -m main

REM Force push to the remote main branch
git push -f origin main
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 2825f33

Please sign in to comment.