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

WBOY
Release: 2016-09-29 09:32:59
Original
1492 people have browsed it

I have done everything I need to do, why?

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

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>
Copy after login
Copy after login

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>
Copy after login

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

<code>[credential]
helper=store</code>
Copy after login
Related labels:
source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template