Skip to content

Instantly share code, notes, and snippets.

@fideloper
Last active October 23, 2018 07:52
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 5 You must be signed in to fork a gist
  • Save fideloper/3751524 to your computer and use it in GitHub Desktop.
Save fideloper/3751524 to your computer and use it in GitHub Desktop.
Git aliases
[alias]
#Basic
st = status -sb
co = checkout
#Flow
fs = flow feature start
ff = flow feature finish
#Infoz
count = shortlog -sn
df = diff --color
wdf = diff --word-diff --color
fdf = diff --name-only --color
br = branch -a
sh = show --pretty=format: --name-only
#Log
last = log -1 HEAD
lg = log --color --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit --
#Push/pull/commit
pdev = push origin develop
udev = pull origin develop
amend = commit --amend
cm = commit
cmm = commit -m
@fideloper
Copy link
Author

Updates

2013.8.3

  • git df is no longer shows --word-diff, and is in --color
  • git wdf shows --word-diff and is in --color ( word diff )
  • git fdf shows --name-only of the files modified ( file diff )

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