Skip to content

Instantly share code, notes, and snippets.

@joeycozza
Last active April 24, 2019 19:19
Show Gist options
  • Save joeycozza/3db5af3f1f657397a3d43496cc79b66d to your computer and use it in GitHub Desktop.
Save joeycozza/3db5af3f1f657397a3d43496cc79b66d to your computer and use it in GitHub Desktop.
Some git aliases I have
[alias]
co = checkout
cob = checkout -b
md = merge develop
cm = commit -a -m
s = status
b = branch
graph = log --graph -100 --branches --remotes --tags --format=format:'%Cgreen%h %Creset• %<(75,trunc)%s (%cN, %cr) %Cred%d' --date-order
precommit = diff --cached --diff-algorithm=minimal -w
cod = checkout develop
com = checkout master
rmi = rebase -i master
uncommit = reset --soft HEAD~
open = !open $(git config remote.origin.url)
rebaseMaster = !git checkout master && git pull origin master && git checkout @{-1} && git rebase -i master
So I have these aliases in my ~/.gitconfig file.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment