I can edit in the configuration file that contains the username,password and github email using git with
git config --global -e
OR
git config --global --edit
or in the .gitconfig
file
How can I edit the gitlab
and bitbucket
config files to contain a username, password, and email, and then where do I save it in Windows?
The global git config is simply a text file, so it can be edited with whatever text editor you choose. Open, edit global git config, save and close, and the changes will take effect the next time you issue a git command. It's that easy.
The git config command is a convenience function that is used to set Git configuration values on a global or local project level. These configuration levels correspond to . gitconfig text files. Executing git config will modify a configuration text file.
The Git configuration file contains a number of variables that affect the Git commands' behavior. The . git/config file in each repository is used to store the configuration for that repository, and $HOME/. gitconfig is used to store a per-user configuration as fallback values for the . git/config file.
I don't know where that configuration is, but all you need to do in Windows is make sure you have set the right credential helper to cache your credentials:
git config --global credential.helper manager
Then, at the first push, you will be prompted for your GitLab username/password.
Once entered, they will be cached in the Windows Credential Manager, and never asked for directly again.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With