Dec.19

Set Git username for repository [commit environment]

Setting your Git username for every repository on your computer

  1. Open Git Bash.
  2. Set a Git username:
    $ git config --global user.name "Prakash Bhandari"
  3. Confirm that you have set the Git username correctly:
    $ git config --global user.name
    > Prakash Bhandari

Setting your Git username for a single repository

  1. Open Git Bash.
  2. Change the current working directory to the local repository where you want to configure the name that is associated with your Git commits.
  3. Set a Git username:
    $ git config user.name "Prakash Bhandari"
  4. Confirm that you have set the Git username correctly:
    $ git config user.name
    > Prakash Bhandari

 

Share this Story:
  • facebook
  • twitter
  • gplus

Leave a comment

Facebook Comment