Advanced git commands every senior software developer needs to know
As aliases
<span style="color:#323232;">alias g-log="git log --graph --format='format:%C(yellow)%h%C(reset) %s %C(magenta)%cr%C(reset)%C(auto)%d%C(reset)'"
</span><span style="color:#323232;">alias g-history='gitk --all &'
</span><span style="color:#323232;">alias g-checkout='git checkout $(git branch --sort=-committerdate --no-merged | fzf)'
</span><span style="color:#323232;">alias g-commit='git citool &'
</span><span style="color:#323232;">alias g-amend='git citool --amend &'
</span><span style="color:#323232;">alias g-rebase='git rebase --interactive --autosquash'
</span><span style="color:#323232;">alias g-pull='git pull --verbose --rebase'
</span><span style="color:#323232;">alias g-pushf='git push --verbose --force-with-lease'
</span><span style="color:#323232;">alias g-status='git status --ignored'
</span><span style="color:#323232;">alias g-clean='git clean -fdx && git reset --hard && git submodule foreach --recursive git clean -fdx && git submodule foreach --recursive git reset --hard'
</span>
Add comment