5
6

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.

WindowsでのGitのアカウント切り替え

Posted at

背景

 社内のチームで使うGitBucketの整備をルートアカウントで行っていました。その後、自分の個人のアカウントでサインインし直しました。そして、作業用の新しいリポジトリAを作成しました。
 自分のローカルで色々と作業をし、リモートのリポジトリAにpushしたところ・・・
gitbucket_root.png

あれっ!個人アカウントじゃなくてrootアカウントでpushされてる!!
ということで対処法です。

Gitのアカウント切り替え

コントロールパネルを開いて、資格情報マネージャーを開きます。

control_panel.png

Windows資格情報をクリックします。

windows_credentials.png

汎用資格情報のgitを見ると、現在ログインしているユーザー名が確認できます。意図したものと違う場合は「編集」をクリックして資格情報を編集します。

generic_credentials.png

edit_cerdential.png

これでアカウントを切り替えることができました。

参考URL

5
6
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
5
6

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?