git config

Git configuration

User name

$ git config --global user.name PingjunChen

User email

$ git config --global user.email pingjunchen@ieee.org

Editor

$ git config --global core.editor vim

Password

$ git config --global credential.helper cache

Default branch

$ git config --global init.defaultBranch main

Add remote

$ git remote add origin https://github.com/user/repo.git

Git alias

git config --global alias.cm "commit -m"
git config --global alias.st status
git config --global alias.ci commit
git config --global alias.co checkout
git config --global alias.br branch
git config --global alias.last "log -1 HEAD"
git config --global alias.aa "add --all"
git config --global alias.cb "checkout -b"