Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8400199
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 9, 20262026-06-09T21:30:09+00:00 2026-06-09T21:30:09+00:00

Let’s say I make a repo cd repo1 git init git config user.name Jack

  • 0

Let’s say I make a repo

cd repo1
git init
git config user.name "Jack"
git config user.email jack@hill.com

and then I make another

cd ../repo2
git init
git config --global user.name "Jill"
git config --global user.email jill@hill.com

Will I be Jack or Jill in repo1?
I assume that I’ll be Jack in repo1 if these 2 steps are done in the opposite order?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-09T21:30:10+00:00Added an answer on June 9, 2026 at 9:30 pm

    You will be Jack in repo1, and Jill in repo2, regardless of the order in which you run the commands. From the git config man page:

       If not set explicitly with --file, there are four files where git config will search for configuration options:
    
       $GIT_DIR/config
           Repository specific configuration file.
    
       ~/.gitconfig
           User-specific configuration file. Also called "global" configuration file.
    
       $XDG_CONFIG_HOME/git/config
           Second user-specific configuration file. If $XDG_CONFIG_HOME is not set or empty, $HOME/.config/git/config will be used. Any single-valued variable
           set in this file will be overwritten by whatever is in ~/.gitconfig. It is a good idea not to create this file if you sometimes use older versions of
           Git, as support for this file was added fairly recently.
    
       $(prefix)/etc/gitconfig
           System-wide configuration file.
    

    Git loads these files in that order. Your local repository’s, .git/config, takes precedent over ~/.gitconfig, which takes precedent over $HOME/.config/git/config, which takes precedent over /etc/gitconfig. Moreover:

    All writing options will per default write to the repository specific configuration file. Note that this also affects options like --replace-all and
    --unset. git config will only ever change one file at a time.
    

    The --global flag doesn’t change every .git/config on your system, just ~/.gitconfig.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Let's say I don't have photoshop, but I want to make pattern files (.pat)
Let's say I have a method in java, which looks up a user in
Let me try to explain by example. Say website is hosted at example.com (NOT
Let's say I have thousands of users and I want to make the passwords
Let's say I have window.open (without name parameter), scattered in my project and I
Let's say I have an facebook application running using the JS SDK. First user
Let's say after I had login I will be prompt to enter the Name
Let's say, if I need to assign an id to element with first name,
let's say I have a select list as follows: <select name='languages'> <option value='german'>German</option> <option
Let say I've this URL: http://example.com/image-title/987654/ I want to insert download to the part

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.