A bunch of alias settings that improve using experience for git
/bin/bash -c "$(curl -fsSL https://github.com/macrox/git-alias/raw/master/main.sh)"
Or
git clone https://github.com/macrox/git-alias.git
cd git-alias
sh main.sh
As same as git status
git st
As same as git checkout
git co existing-branch
git co -b new-branch
As same as git commit
git ci
git ci -m "chore: Commit with message"
As same as git branch
git br
git br -D useless-branch
As same as git reset HEAD
.
Unstage uncommit changes of specified file(s)
git unstage .
git unstage specified-file
As same as git log -l
Show last commit log
git ll
Show pretty log
git lg