Skip to content

Commit

Permalink
Add: backup-branch
Browse files Browse the repository at this point in the history
  • Loading branch information
romain-dartigues committed Sep 4, 2019
1 parent 4bc8660 commit 4cf70a1
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions gitalias.txt
Original file line number Diff line number Diff line change
Expand Up @@ -795,6 +795,9 @@
save = stash push
pop = stash pop

# Save the current branch (for example, prior a rebase)
backup-branch = !"git branch backup/$(date +%F/%H-%M-%S)"

# Stash snapshot - from http://blog.apiaxle.com/post/handy-git-tips-to-stop-you-getting-fired/
# Take a snapshot of your current working tree without removing changes.
# This is handy for refactoring where you can't quite fit what you've done
Expand Down

0 comments on commit 4cf70a1

Please sign in to comment.