hexojs / hexo-deployer-git

Git deployer plugin for Hexo.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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?

commented

You can try to edit .deploy_git/.git/config file in your Hexo blog directory, to update stored information

You can try to edit .deploy_git/.git/config file in your Hexo blog directory, to update stored information

Hello, many thanks for your reply.
However, I did not find the directory you mentioned before.
D50z4F

Will it be deleted every deployment?

commented

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.