Skip to content

Commit

Permalink
life saving script
Browse files Browse the repository at this point in the history
  • Loading branch information
palladius committed Aug 22, 2024
1 parent 926b4ea commit 8fc5603
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions bin/git-revert-main-to-N-days-ago
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
#!/bin/bash

N_DAYS_AGO=${1:-7}

echo "Reverting your git repo MAIN to $N_DAYS_AGO days ago.."

echodo git reset --hard main@{$N_DAYS_AGO.days.ago}

0 comments on commit 8fc5603

Please sign in to comment.