How to remove stored username and personal access token?
jxpeng98 opened this issue · comments
Hello,
Recently, I tried to change the deploy repo and token. I found a problem:
The system will not require for username and password for push even if I only enter the repo and branch:
deploy:
type: git
repo: https://github.com/jxpeng98/blog
branch: gh-pages
message: "{{ now('YYYY-MM-DD HH:mm:ss') }}"
When I change the repo URL and branch with name and token, it will show the error code 403
. I tried to remove stored credential information from the system. However, it did not work.
May I know whether there is any way to erase stored information and let the terminal prompt enter the name and password again?
You can try to edit .deploy_git/.git/config
file in your Hexo blog directory, to update stored information
It won't be deleted. It may be considered a hidden directory by the file manager
I reset the credential information stored in osxkeychain
. The problem is solved.