How to set Git config?

QuestionsQuestions8 SkillsProGit Config ManagementNov, 26 2025
0120

To set Git configuration, you can use the git config command followed by the desired level (system, global, or local), the key you want to set, and the value you want to assign. Here are examples for each level:

  1. Set System Level Configuration:
    This applies to all users on the system.

    git config --system <key> <value>

    Example:

    git config --system core.editor nano
  2. Set Global Level Configuration:
    This applies to the current user across all repositories.

    git config --global <key> <value>

    Example:

    git config --global user.name "Jane Doe"
    git config --global user.email "jane.doe@example.com"
  3. Set Local Level Configuration:
    This applies only to the specific repository you are working in.

    git config --local <key> <value>

    Example:

    git config --local core.ignorecase false

After setting the configuration, you can verify it using git config --list to ensure that your changes have been applied.

0 Comments

no data
Be the first to share your comment!