1
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

githubでユーザ名を変えてローカルですること

Last updated at Posted at 2019-09-11

githubのユーザ名を変えたいと思って、難しそう・面倒そうと思ってやってこなかったのですが、意外にも簡単だったのでメモ。

githubの画面右上からsetting=>account=>change nameで変更するだけ。

もっと、いろいろ画面上でリポジトリ毎に、操作しなくてはいけないと思っていた。

git pull や git push しようとするときにエラーになるので次のコマンドでローカルの設定をgithub上で変更したユーザ名に変えておく。

git config --global user.name 'NEW_NAME'

// これで今の設定を確認できる
git config --global -l

大変参考にさせていただきました。
GitHubのユーザー名を変更してみた - 一から勉強させてください( ̄ω ̄;)

1
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?