4. Configuring Git - rajendrapenumalli/GitNotes GitHub Wiki

4. Configuring Git

* git config <scope> user.name  "[name]"
* git config <scope> user.email "[email]"

Scopes:

 --global
 --system
 --local

Sample:

$ git config --global user.name "rpenumalli"
$ git config --global user.email "[email protected]"

Additional Configs

$ git config --global core.editor "subl -n -w"~           to open in subline
$ git config --global color.ui true                       to show colours

Listing Config

$ git config -l # list git-config settings (same as --list)

Editing Config

$ git config -e # Opens git-config in default editor (same as --edit)

Removing Config

$ git config --global --unset user.name
$ git config --global --unset user.email

Configure remote origin

   echo "# test3" >> README.md
   git init
   git add README.md
   git commit -m "first commit"
   git remote add origin https://github.com/rajendrapenumalli/test3.git
   git push -u origin master
⚠️ **GitHub.com Fallback** ⚠️