Skip to content

Commit 7dabc91

Browse files
Add: backup-branch
1 parent d3bc0c4 commit 7dabc91

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
@@ -1103,6 +1103,9 @@
11031103
#
11041104
clone-lean = clone --depth 1 --filter=combine:blob:none+tree:0 --no-checkout
11051105

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

0 commit comments

Comments
 (0)