I’ve been using GitKraken client at work. However, true that a lot of so called senior engineers, think that using client is for novice engineers 😓… although I don’t deny that using git command line … looks 😎 🤓.

So here’s my git tips stash.

Using alias to shorten commands.

Inside your .gitconfig, add these:

    d = diff
    br = branch --all
    ci = commit
    co = checkout
    dh = diff HEAD
    lg = log --graph --pretty=format:'%Cred%h..%Creset - %s %Cgreen(%cr)%Creset - %an' --abbrev-commit --date=relative
    lgn = log --pretty=oneline --abbrev-commit --show-notes=*
    mnff = merge --no-ff
    rh = reset --soft HEAD^
    st = status