Skip to content

Instantly share code, notes, and snippets.

@rjbs
Created July 19, 2012 21:43
Show Gist options
  • Star 4 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save rjbs/3147055 to your computer and use it in GitHub Desktop.
Save rjbs/3147055 to your computer and use it in GitHub Desktop.
my git aliases
[alias]
ci = commit -a
cl = clean -dfx
cc = cherry-pick
ff = merge --ff-only
fx = commit -a --amend -C HEAD
ix = diff --cached
st = status -sb
fap = fetch --all --prune
hist = log --all --graph --color=always --pretty='[%C(cyan)%h%Creset]%C(bold cyan)%d%Creset %s'
fist = !git fap && git hist
@mjdominus
Copy link

[alias]
  branches = for-each-ref --format='%(refname:short)'
  ff = merge --ff-only
  fixup = commit --amend -C HEAD
  hist = log --decorate --all --graph
  ix = diff --cached
  patch = apply
  pho = push origin HEAD
  pullr = pull --rebase
  rprune = remote prune
  statuis = status
  s = status -s
  st = status
  type = cat-file -t

I use "s" far more often than any of the others.

@rjbs
Copy link
Author

rjbs commented Oct 30, 2013

This is now github.com/rjbs/rjbs-git

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