Skip to content

Instantly share code, notes, and snippets.

@TomMannson
Last active May 30, 2019 11:39
Show Gist options
  • Save TomMannson/dc1f32013ef989807a67e2ee6bfe2a44 to your computer and use it in GitHub Desktop.
Save TomMannson/dc1f32013ef989807a67e2ee6bfe2a44 to your computer and use it in GitHub Desktop.
[alias]
cbfix = "!f() { git branch | grep bugfix | xargs git branch -d $1; }; f"
cbfeature = "!f() { git branch | grep bugfix | xargs git branch -d $1; }; f"
goto = "!f() { git reset --hard; git clean -f; git checkout $1; }; f"
sync = "!f() { touch STASHING; git stash --all --quiet; git checkout $1 --quiet; git pull origin $1; git checkout -; git stash pop --quiet; rm STASHING;}; f"
@TomMannson
Copy link
Author

formating

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment