28
loading...
This website collects cookies to deliver better user experience
--local
--global
--system
git config user.email
git config user.name
git config user.email "[email protected]"
git config --global user.name "first_name last_name"
git config --global color.ui true
git config --global color.ui auto
git config --global color.ui false
git commit -m "new commit"
but with git commit you can do it simply by git cm "new commit"
NOTE: We will set aliases globally because we require alias to be set for our whole Operating System.
$ git config --global alias.co checkout
$ git config --global alias.br branch
$ git config --global alias.ci commit
$ git config --global alias.st status
git config --global --unset alias.<alias>
vim ~/.gitconfig
code ~/.gitconfig
cat .gitconfig