Last active
April 24, 2019 19:19
-
-
Save joeycozza/3db5af3f1f657397a3d43496cc79b66d to your computer and use it in GitHub Desktop.
Some git aliases I have
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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