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.

windowsで、https経由でgithubにpushするuserは資格情報にキャッシュされている

Last updated at Posted at 2020-01-24

やろうとしたこと

gitbash on Windowsでgithubへpushなどを行っていたが
ふとgithubの別アカウントでpushしたいリポジトリがあったのでuserを切り替えようとした

起きた問題

どう足掻いても、githubへpushするときのuserが切り替わらない。。。

gitbashで

git config --global user.name "chigau_user"
git config --global user.email chigau_user@hogehoge.com"

とかやったり、
C:\Users\Watashi\.netrc を削除したり、

リポジトリをcloneし直すついでに

git clone https://chigau_user@github.com/chigau_user/...

とかやったり。。。
Windows再起動したり。。。
散々やってもダメ。。。

解決方法

やっとの思いで↓こちらにたどり着いたのですが、
https://qiita.com/mzkii/items/d47c37964c435a981114
こちとらWindows。。。
キーチェーンなんてないし。。。

...あっ

お ま え か っ !!!
ss1.png

ゆるさへんで!
ほんま!!

時間返して。。。

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?