Skip to content

Instantly share code, notes, and snippets.

@tav
Created July 6, 2009 18:19
Show Gist options
  • Select an option

  • Save tav/141591 to your computer and use it in GitHub Desktop.

Select an option

Save tav/141591 to your computer and use it in GitHub Desktop.
[user]
email = tav@espians.com
name = tav
[color]
diff = auto
status = auto
branch = auto
interactive = auto
ui = auto
[github]
user = tav
token = my-token-here
[alias]
ch = checkout
co = commit
st = status
lp = log -p
diffall = diff HEAD
diffstaged = diff --staged
graph = log --pretty=oneline --graph
filelog = log --pretty=oneline --no-merges --
hub = push origin master
z-branchdiff = diff ..somebranch
z-branchdiff2 = diff master..somebranch
z-branchdifflog = log master..someotherbranch --pretty=oneline
z-genpatch = format-patch origin/master
z-listremotebranches = remote show origin
z-new-branch-with-name = checkout -b
z-revertbutkeepworkingtree = reset --soft HEAD^
z-revertfile = checkout --
z-reviewchanges = log -p ORIG_HEAD.. some/path some/other/path
z-showbranch = show-branch
z-unstagefile = reset HEAD
z-wipeitallaway = reset --hard HEAD
z-pseudopull = !"git fetch origin -v; git fetch upstream -v; git merge upstream/master"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment