Skip to content

Instantly share code, notes, and snippets.

@pmiossec
Last active December 26, 2015 20:08
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 pmiossec/7205868 to your computer and use it in GitHub Desktop.
Save pmiossec/7205868 to your computer and use it in GitHub Desktop.
tig binding commands
[tig "bind"]
# Amend last commit in status view
status = A !?git commit --amend
#Create a branch
main = ^b !?git checkout -b %(prompt)
#Push to Remote repository
main = ^o !git push origin
#Stash modifications
generic = ^s !@git stash save
generic = ^S !@git stash pop
#Fetch
main = ^f !git fetch --all --prune
#Rebase
main = ^r !git pull --rebase
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment