Configuring Git # 03

Git configuration structure

👉 Setting git config value
💨 Local (repository) 
git config --local user.name “user name”

💨 Global (user directory)
git config --global user.name “user name”

💨 System (git installation)
git config --system user.name “user name”

👉 How to view config value
git config --list --show-origin

👉 Removing git config value
git config --global --unset user.name

👉 Removing a section of config for a specific level
git config --global --remove-section user

👉 Edit git config value in a text editor
git config --global --edit → open an editor

👉 Open a terminal, and then type the following...

💨 Give GitHub email and username
git config --global user.email "you@example.com"
git config --global user.name "Your Name"
Or, follow the link

👉 Git configuration structure
Edit git config value
git config --global --edit → open an editor

Post a Comment

Previous Post Next Post