Month: February 2013

  • Super git alias

    Kuba korzysta z super fajnych aliasów w gicie :) polecam

    [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]
    drzewokurwa = 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
    duzedrzewokurwa = 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
    komitykurwa = log --pretty=format:'%C(yellow)%h %Cred%ad %Cblue%an%Cgreen%d %Creset%s' --date=iso
    
    ktotokurwa = "!sh -c 'git log -i -1 --pretty=\"format::%an <%ae>\n\" --author=\"$1\"' -"
    cotokurwa = show -s --pretty='tformat::%h (%s, %ad)' --date=short
    
    cotamkurwa = !sh -c 'git fetch' && git log --oneline HEAD..origin/$1
    cotammistrzukurwa = !sh -c 'git fetch' && git log --oneline HEAD..origin/master
    ktotamkurwa = !sh -c 'git shortlog HEAD..origin/$0'
    ktotammistrzukurwa = !sh -c 'git shortlog HEAD..origin/master'
    
    tagikurwa = show-ref --tags
    pchajtagikurwa = push --tags
    tagujzdatakurwa = !sh -c 'git tag "$0"_$(date "+%y-%m-%d_%H-%M-%S")'
    
    pojebalosiekurwa = reset --hard
    
    kurwa = status
    cokurwa = status
    cojestkurwa = diff
    howcanikurwa = help
    nabokkurwa = stash
    zbokukurwa = stash apply
    sprzatajkurwa = clean
    sprzatajwszystkokurwa = !sh -c 'git clean -x' && git reset --hard
    
    [apply]
    whitespace = nowarn

    źródło: https://github.com/jakubnabrdalik/gitkurwa/blob/af1a9175233fcccd86d56784be2b7aa598d7a53c/configNSFW_PL#L17