Skip to content

Instantly share code, notes, and snippets.

@masahitojp
Created July 7, 2017 02:59
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save masahitojp/79d1fcbe2eaf3f34b7eddd05ce5b78e0 to your computer and use it in GitHub Desktop.
Save masahitojp/79d1fcbe2eaf3f34b7eddd05ce5b78e0 to your computer and use it in GitHub Desktop.
my git aliases
[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