Home  >  Article  >  Backend Development  >  javascript - Why do you have to enter your username and password every time when deploying hexo to github using git?

javascript - Why do you have to enter your username and password every time when deploying hexo to github using git?

WBOY
WBOYOriginal
2016-09-29 09:32:591474browse

I have done everything I need to do, why?

<code> $ git config --global user.name 'xxxxx' 
 $ git config --global user.email 'xxxxxx' 
</code>

javascript - Why do you have to enter your username and password every time when deploying hexo to github using git?

javascript - Why do you have to enter your username and password every time when deploying hexo to github using git?

javascript - Why do you have to enter your username and password every time when deploying hexo to github using git?

Reply content:

I have done everything I need to do, why?

<code> $ git config --global user.name 'xxxxx' 
 $ git config --global user.email 'xxxxxx' 
</code>

javascript - Why do you have to enter your username and password every time when deploying hexo to github using git?

javascript - Why do you have to enter your username and password every time when deploying hexo to github using git?

javascript - Why do you have to enter your username and password every time when deploying hexo to github using git?

Delete your current local repository and git clone again. Remember to use SSH.
For example, git clone git@github.com:HmyBmny/hmybmny.github.io.git, so that you can use SSH.

The account authorization information used to configure in git is mainly controlled by the helper node of the credential configuration item.
You can configure the saved account password through the following command

<code>git config --global credential.helper store</code>

You can also modify the configuration file directly in the user directory

<code>[credential]
helper=store</code>
Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn