When using intellij idea 2016 ULTIMATE
, you need to submit the code to the git
warehouse.
At this time, I used my colleague’s git
warehouse account password.
The result is tragic:
intellij idea 2016
Remembered the account password.
As a result, every time I submit code, the name of the submitter displayed in the code repository is the name of my colleague!
In order to solve this problem, I tried the following methods, but none of them worked!
Uninstallidea
;
Uninstallgit
;
Clear idea
, git
cache;
Recheck out the git
code;
sets idea
’s password
to: do not remeber passwords
;
To sum up, which expert has encountered the same problem and solved it? Waiting online! ............
Answer yourself,
windows7
Example:控制面板
>>用户账户
>>凭据管理
>> Find your git account credentials and modify them - -#git remote -v
View the remote warehouse, then delete your colleague’s, add your own, and command Baidu yourself.file->settings->search
password
->github tab, trytryWhat you need is this command: git config -e global
First
git remote -v
检查一下 origin 的地址是不是指向了你同事的 clone 地址 (这个和用的哪种 git 仓库有关)然后
git config --list
检查下user.name
以及user.email
Set git config
It is recommended to open git bash in the local project directory, and then enter git config --local -l to check whether it is your colleague's account. If so, just use git config to reset it to your own.