Skip to content

Commit

Permalink
fix branch copy git alias
Browse files Browse the repository at this point in the history
  • Loading branch information
claytron committed Sep 13, 2018
1 parent 97d6178 commit b5810e5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .gitconfig
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@
# Create a copy of the current branch, usually before rebasing.
# Idea from: http://kevinold.com/2012/07/06/git-backup-branches.html
# Also, copy it to the clipboard
brcp = !git branch $(git branch | grep '*' | sed -e 's/* //' -e "s/$/_COPY_`date +'%Y-%m-%d_%H.%M.%S'`/" | pbcopy | pbpaste )
brcp = !git branch $(git branch | grep '*' | sed -e 's/* //' -e "s/$/_COPY_`date +'%Y-%m-%d_%H.%M.%S'`/" | pbcopy && pbpaste)
# Branch switching / creation
co = checkout
# In the case where something like solano has the same branch...
Expand Down

0 comments on commit b5810e5

Please sign in to comment.