Skip to content

Commit 23d089f

Browse files
RichardLittgr2m
authored andcommitted
docs(readme): add note about setting global config
1 parent 8cedeb4 commit 23d089f

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

README.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,9 @@ Note that your CI server will also need to set the environment variable `CI=true
7777

7878
## Setting defaults
7979

80-
This package reads from your global `.npmrc`. In order to autosuggest a username in the future, make sure to set your username there: `npm config set username <username>`.
80+
This package reads your npm username from your global `.npmrc`. In order to autosuggest a username in the future, make sure to set your username there: `npm config set username <username>`.
81+
82+
It also reads your GitHub username from your global `.gitconfig`. In order to autosuggest a username in the future, run `git config --global --add github.username <username>`. If a name isn't defined here, it will default to using your npm username, as it will assume they are identical.
8183

8284
## Contribute
8385

0 commit comments

Comments
 (0)