Git

git Settings

Here are a few Git settings that have proven effective for me in working efficiently:

General Settings

Bash
git config --global branch.autosetupmerge true
git config --global push.default tracking

Display Settings

Bash
git config --global log.decorate short
git config --global color.ui auto
git config --global color.interactive auto
git config --global color.diff auto
git config --global color.branch auto
git config --global color.status auto
git config --global pager.status true
git config --global pager.show-branch true
git config --global format.numbered auto

Shortcuts / Alias

Bash
git config --global alias.st status
git config --global alias.ci commit
git config --global alias.co checkout
git config --global alias.ru "remote update"
git config --global alias.br branch
git config --global alias.cam "commit -a -m"

PowerShell alias Beautification

Bash
git log --pretty=format:'%C(yellow)%h %Cred%ad %Cblue%an%Cgreen%d %Creset%s' --date=short

Leave a Reply

Your email address will not be published. Required fields are marked *