Skip to content

Instantly share code, notes, and snippets.

@dkraczkowski
Created December 14, 2015 15:16
Show Gist options
  • Save dkraczkowski/ee716cf69587d3ad1e74 to your computer and use it in GitHub Desktop.
Save dkraczkowski/ee716cf69587d3ad1e74 to your computer and use it in GitHub Desktop.
[color]
ui = auto
[color "branch"]
current = yellow reverse
local = yellow
remote = green
[color "diff"]
meta = yellow bold
frag = magenta bold
old = red bold
new = green bold
[color "status"]
added = yellow
changed = green
untracked = cyan
[alias]
gimmefuckingtree = 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
gimmehugefuckingtree = log --pretty=format:'%Cred%h%Creset %C(bold blue)<%an>%Creset%C(yellow)%d%Creset %Cgreen(%cr)%Creset%n%w(80,8,8)%s%n' --graph --name-status
gimmesomefuckingdetails = log --pretty=format:'%C(yellow)%h %Cred%ad %Cblue%an%Cgreen%d %Creset%s' --date=iso
whothefuck = "!sh -c 'git log -i -1 --pretty=\"format::%an <%ae>\n\" --author=\"$1\"' -"
whatthefuck = show -s --pretty='tformat::%h (%s, %ad)' --date=short
whatthefuckhappend = !sh -c 'git fetch' && git log --oneline HEAD..origin/$1
whatthefuckhappendtomaster = !sh -c 'git fetch' && git log --oneline HEAD..origin/master
= !sh -c 'git shortlog HEAD..origin/$0'
whoistheremaster = !sh -c 'git shortlog HEAD..origin/master'
gimmefuckingtags = show-ref --tags
pushmyfuckingtags = push --tags
tagwithfuckingdates = !sh -c 'git tag "$0"_$(date "+%y-%m-%d_%H-%M-%S")'
fuckit = reset --hard
whofuckedup = blame
fuck = status
fcuk = status
howthefuck = diff
howcanifuck = help
lost = stash
found = stash apply
cleanit = clean
cleantheshit = !sh -c 'git clean -x' && git reset --hard
fuckitback = reset HEAD~100
fuckitall = reset HEAD~100 --hard
idontfuckingcare = push origin --force
[apply]
whitespace = nowarn
@bantya
Copy link

bantya commented Aug 19, 2017

Learnt the whole git in just 52 lines ;)

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