Skip to content

Commit e1cc03d

Browse files
Add: backup-branch
1 parent adc476a commit e1cc03d

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

gitalias.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -795,6 +795,9 @@
795795
save = stash push
796796
pop = stash pop
797797

798+
# Save the current branch (for example, prior a rebase)
799+
backup-branch = !"git branch backup/$(date +%F/%H-%M-%S)"
800+
798801
# Stash snapshot - from http://blog.apiaxle.com/post/handy-git-tips-to-stop-you-getting-fired/
799802
# Take a snapshot of your current working tree without removing changes.
800803
# This is handy for refactoring where you can't quite fit what you've done

0 commit comments

Comments
 (0)