I accidentally commit
ted a sensitive password into source control before push
ing to the central repository.
I removed the password from my code and did git add -A . && git commit --amend
and then git push origin master
.
Is there any trace of the sensitive password in Git? In other words, when you run git commit --amend
, does Git have any trace of the commit containing the sensitive data?
(I changed the password just to be sure.)