configure your git username/email on linux

| 0 Comments| | 04:30
Categories:

To set your global username/email configuration:

  1. Open the command line.
  2. Set your username:
    $ git config --global user.name "FIRST_NAME LAST_NAME"
  3. Set your email address:
    $ git config --global user.email "MY_NAME@example.com"

To set repository-specific username/email configuration:

  1. From the command line, change into the repository directory.
  2. Set your username:
    $ git config user.name "FIRST_NAME LAST_NAME"
  3. Set your email address:
    git config user.email "MY_NAME@example.com"
  4. Verify your configuration by displaying your configuration file:
    $ cat .git/config

 
 
Source: Configure your DVCS username for commits | Bitbucket Cloud | Atlassian Support
 
#git #linux

Leave a Reply

發佈留言必須填寫的電子郵件地址不會公開。 必填欄位標示為 *