re: Git workflow and my new love of Git alias VIEW POST

VIEW FULL DISCUSSION
 

The first git alias I would like to share is git aliases:

aliases = !git config --get-regexp 'alias.*' | colrm 1 6 | sed 's/[ ]/ = /' | sort

The one I could not live without is a git log alias:

lola = log --graph --pretty='%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --all

I often use a git oops and a gwip and gunwip (available in git plugin for oh-my-zsh):

gwip='git add -A; git rm $(git ls-files --deleted) 2> /dev/null; git commit --no-verify -m "--wip-- [skip ci]"'

gunwip='git log -n 1 | grep -q -c "\-\-wip\-\-" && git reset HEAD~1'
oops = commit --amend --no-edit

And the very classical gapa and gst:

gapa='git add --patch'
gst='git status'

(note: some are git aliases, some are bash aliases)

code of conduct - report abuse