GIT Config

0

 

Git Configuration

Git Configuration

The --global option in the git config command sets the configuration for all repositories on your system that are accessed by your user account. This is done by writing the configuration to the global ~/.gitconfig file.

Set Configuration

    
    git config --global user.name "Your Name"
    git config --global user.email "youremail@yourdomain.com"
    
    

Unset Configuration

    
    git config --global --unset user.name
    git config --global --unset user.email
    
    

You can verify the changes with:

    
    git config --global --list
    
    

This will display all the configuration settings stored in your global Git configuration file.

Remember, if you set the configuration without the --global option, it applies only to the current repository. But with --global, the configuration applies to all repositories accessed by your user account.

Tags

Post a Comment

0Comments
Post a Comment (0)