Last active
June 22, 2021 09:52
-
-
Save michaldudak/74e9e143c6d5133b1711e36278c477ba to your computer and use it in GitHub Desktop.
My git aliases
This file contains 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 | |
br = branch | |
cm = commit -m | |
cf = commit --fixup | |
cfh = commmit --fixup HEAD | |
fp = fetch --prune | |
fap = fetch --all --prune | |
fo = !sh -c 'git fetch origin $1:$1' - | |
fu = !sh -c 'git fetch upstream $1:$1' - | |
st = status | |
s = status -sb | |
pu = push -u origin HEAD | |
tree = log --pretty=format:'%Cred%h%Creset %C(bold blue)<%an>%Creset%C(yellow)%d%Creset %Cgreen(%cr)%Creset%n%w(80,8,8)%s' --graph | |
commits = log --pretty=format:'%C(yellow)%h %Cred%ad %Cblue%an%Cgreen%d %Creset%s' --date=iso | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment