About Git usernames
You can change the name that is associated with your Git commits using the git config
command. The new name you set will be visible in any future commits you push to GitHub from the command line. If you'd like to keep your real name private, you can use any text as your Git username.
Changing the name associated with your Git commits using git config
will only affect future commits and will not change the name used for past commits.
Setting your Git username for every repository on your computer
-
터미널터미널Git Bash를 엽니다.
-
Git 사용자 이름을 설정합니다.
git config --global user.name "Mona Lisa"
-
Git 사용자 이름을 올바르게 설정했는지 확인합니다.
$ git config --global user.name > Mona Lisa
Setting your Git username for a single repository
-
터미널터미널Git Bash를 엽니다.
-
Change the current working directory to the local repository where you want to configure the name that is associated with your Git commits.
-
Git 사용자 이름을 설정합니다.
git config user.name "Mona Lisa"
-
Git 사용자 이름을 올바르게 설정했는지 확인합니다.
$ git config user.name > Mona Lisa