Git Configuration

Help us to keep this website almost Ad Free! It takes only 10 seconds of your time:
> Step 1: Go view our video on YouTube: EF Core Bulk Extensions
> Step 2: And Like the video. BONUS: You can also share it!

Syntax

  • git config [<file-option>] name [value] # one of the more common use cases of git config

Parameters

ParameterDetails
--systemEdits the system-wide configuration file, which is used for every user (on Linux, this file is located at $(prefix)/etc/gitconfig)
--globalEdits the global configuration file, which is used for every repository you work on (on Linux, this file is located at ~/.gitconfig
--localEdits the respository-specific configuration file, which is located at .git/config in your repository; this is the default setting


Got any Git Question?