Skip to content

Commit c1c7cdb

Browse files
Add: backup-branch
1 parent 3e93f2c commit c1c7cdb

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
@@ -1095,6 +1095,9 @@
10951095
#
10961096
clone-lean = clone --depth 1 --filter=combine:blob:none+tree:0 --no-checkout
10971097

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

0 commit comments

Comments
 (0)