My ~/.gitconfig
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
[user] | |
name = Oskar Szrajer | |
email = oskarszrajer@gmail.com | |
[alias] | |
br = branch | |
co = checkout | |
ci = commit | |
df = diff | |
lg = log --color --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit | |
lgp = log -p | |
st = status -sb | |
sts = status --short | |
today = log --author="Oskar" --since="6am" | |
standup = log --oneline --since yesterday --author="Oskar" | |
deploy-log = log --oneline --pretty=format:'- %h %an: %s (%ad)' | |
purr = pull --rebase | |
rename = commit --amend -m | |
fix = "!_() { c=$(git rev-parse $1) && git commit --fixup $c && if grep -qv \"No local changes\" <<<$(git stash); then s=1; fi; git -c core.editor=cat rebase -i --autosquash $c~; if [[ -n "$s" ]]; then git stash pop; fi; }; _" | |
[color] | |
branch = auto | |
diff = auto | |
status = auto | |
ui = true |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment