Skip to content

beligatclement/git-alias

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 

Repository files navigation

git-alias

All my git alias

Git alias commands

See alias list

git config --global --list | grep alias

or

git config --get-regexp '^alias\.'

Delete an alias

git config --global --unset alias.XXX

Git alias list

Status -> git s

git config --global alias.s 'status'

Log graph -> git lol

git config --global alias.lol "log --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit"

Log graph all -> git lola

git config --global alias.lola "log --graph --decorate --pretty=oneline --abbrev-commit --all"

Undo the act of committing -> git uncommit

git config --global alias.uncommit "reset --soft HEAD^"

Undo the act of adding -> git unadd

git config --global alias.unadd "restore --staged ."

Save work in case of fire emergency -> git fire

git config --global alias.fire \
'!sh -c "git checkout -b wip/fire/$USER && \
         git stage -A && \
         git commit -m wip-fire-alert && \
         git push origin wip/fire/$USER"'

About

All my git alias

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors