0
当我在本地运行git log
命令时,我可以看到git(Bitbucket)的密码。在作者字段中显示密码的Git日志
commit af45fb439beb489f473b6e935dfc.....
Author: username <Password>
Date: Sat Jun 10 15:32:30 2017 +0530
....
我如何从下一次检查中删除作者字段的密码以及历史检查?
当我在本地运行git log
命令时,我可以看到git(Bitbucket)的密码。在作者字段中显示密码的Git日志
commit af45fb439beb489f473b6e935dfc.....
Author: username <Password>
Date: Sat Jun 10 15:32:30 2017 +0530
....
我如何从下一次检查中删除作者字段的密码以及历史检查?
您必须重写设置正确作者的分支历史记录。 https://help.github.com/articles/changing-author-info/
要在提交重置您的用户名:
git rebase -i <commit-id of the previous commit>
一旦编辑器中打开,在提交给编辑以edit
前改变pick
。保存并退出。然后,
git commit --amend --author="Author name <email>"
git rebase --continue
谢谢!但是你知道为什么我的密码显示在日志中,因此下一次提交不会有它 –
我猜想在某些时候,你错误地请求输入用户名和密码的请求,所以你输入了两个。 –
谢谢@ LasseV.Karlsen我用git config --list来查看所有的配置..并且由于我把密码放在电子邮件字段 –