Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Edit in configuration file of gitlab and bitbuket by git

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?

like image 796
Eng_Farghly Avatar asked Jan 15 '18 18:01

Eng_Farghly


People also ask

Can I edit git config file?

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.

What is the git command to set configuration options?

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.

What is the git config 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.


1 Answers

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.

like image 104
VonC Avatar answered Sep 21 '22 13:09

VonC