Git - Config Username & Password - Store Credentials
Setting Global Git Username and Password # The global git username and password are associated with commits on all repositories on your system that don’t have repository-specific values. To set your global commit name and email address run the git config command with the --global option: git config --global user.name "Your Name"git config Save credentials using git config --global user.name - How git config --global credential.helper cache This command prevent git to ask username and password, not forever but with a default limit to 15 minutes. To change this limit you can run: git config --global credential.helper 'cache --timeout=3600' This move the default limit to 1 hours. You can find all this information on help.github. How to show or change your Git username or email address Jul 08, 2020 git config - How to know the git username and email saved If you are outside of a git repository, git config user.name gives you the value of user.name at global level. When you make a commit, the associated user name is read at local level. Although unlikely, let's say user.name is defined as foo at global level, but bar at local level.
Solved: git global config not working
git config --global credential.helper cache This command prevent git to ask username and password, not forever but with a default limit to 15 minutes. To change this limit you can run: git config --global credential.helper 'cache --timeout=3600'
$ git config --global user.name "John Doe" $ git config --global user.email johndoe@example.com. Опять же, если указана опция --global,
git config information will stored in ~/.gitconfig in unix platform. In Windows it will be stored in C:/users/