Created
July 7, 2017 02:59
-
-
Save masahitojp/79d1fcbe2eaf3f34b7eddd05ce5b78e0 to your computer and use it in GitHub Desktop.
my git aliases
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[alias] | |
fetchp = fetch --prune | |
create-backlog-issue-branch = "!git checkout -b `pbpaste | sed -E 's/([a-zA-Z]+-[0-9]+) (.*)/\\1\\/\\2/g' | sed -e 's/ /-/g' | sed -e 's/\\\"//g'`" | |
push-current-branch = "!git push origin `git rev-parse --abbrev-ref HEAD`" | |
delete-merged-branch = "!git branch --merged | grep -v \\* | grep -v master | xargs -I % git branch -d %" | |
merge-origin = !sh -c 'git checkout $1 && git merge origin/"$1"' - |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment