Dec 03, 2018 · These are stored in .git/config. We need to be in a repository to use git config for this level: Joe@jpc MINGW64 ~/example $ git config --local --list --show-origin fatal: --local can only be used inside a git repository Let's create a repository and then use config command:

But the required git config command that sets up a username and email address typically employs a –global switch, which tends to have Git beginners start to ponder about alternate scopes and asking questions about where all of these Windows git configuration files are saved. Dec 03, 2018 · These are stored in .git/config. We need to be in a repository to use git config for this level: Joe@jpc MINGW64 ~/example $ git config --local --list --show-origin fatal: --local can only be used inside a git repository Let's create a repository and then use config command: Apr 19, 2018 · git config --list --show-origin | awk '{print $1}' | uniq Local Regardless from where you use git on Windows, the repository (local) configuration always resides at the same location, in the root directory of your repository: .git\config View complete list of setting in Git Config. For that go to Git Bash and type this command. git config –list . Press enter and you can see all the settings including the ones that we just set up in the above section. View a particular setting in Git Config

The config files may not always show all inherited configurations, but git config -l will show everything. Saved me because git for windows sets autocrlf on the installation, and it's not in any config file I can find. – geneorama Oct 14 '16 at 18:17

Jan 03, 2016 · Setup Git: Main Tips. The first thing you should do after Git installation is to create Git login by setting values for your Git config username and email.; The personal details you will enter to the system will be used in revising the information you change - Git uses it for commits.

git log, git show, git blame and friends look at the encoding header of a commit object, and try to re-code the log message into UTF-8 unless otherwise specified. You can specify the desired output encoding with i18n.logoutputencoding in .git/config file, like this:

Git will show diffs and merge conflicts in your preferred tools. The settings in this section correspond to the git config diff.tool and merge.tool settings. You can configure Git to use Visual Studio as your merge or diff tool in Global Settings and Repository Settings by selecting Use Visual Studio.