The basic use of github

github download free password tool

Git will need to enter a password each submission

https://github.com/Microsoft/Git-Credential-Manager-for-Windows/releases


$ git config credential.helper store
$ git push https://github.com/repo.git
 
Username for 'https://github.com': <USERNAME>
Password for 'https://[email protected]': <PASSWORD>

git config --global user.email "[email protected]"

git config --global user.name "[email protected]"

From the warehouse clone

git clone https://github.com/yunets/lys.git

View current status


git status

submit

git add index.html about.html
git commit -m '我提交了所有 暂存区 的文件'

Connect remote github

ssh-keygen -t rsa -C "[email protected]"

Results of the

$ ssh-keygen -t rsa -C "[email protected]"
Generating public/private rsa key pair.
Enter file in which to save the key (/c/Users/Administrator/.ssh/id_rsa):
Created directory '/c/Users/Administrator/.ssh'.
Enter passphrase (empty for no passphrase):
Enter same passphrase again:
Your identification has been saved in /c/Users/Administrator/.ssh/id_rsa.
Your public key has been saved in /c/Users/Administrator/.ssh/id_rsa.pub.
The key fingerprint is:
SHA256:aMO63Z3IfjyDAH8GHTUR85xIcet19Gnq6JpcHGO+MsM [email protected]
The key's randomart image is:
+---[RSA 2048]----+
|         .O+.   .|
|        .. B o .o|
|       . .. = .oo|
|    .....  . .o. |
|     o=.S  +..   |
|     oo.o + =    |
|    .  +.o = .   |
|     o ooEO..    |
|    . ..==B=     |
+----[SHA256]-----+

打开 id_rsa.pub,复制里面的 key。

回到 github 上,进入 Account => Settings(账户配置)。
Published 160 original articles · won praise 35 · views 220 000 +

Guess you like

Origin blog.csdn.net/liuyunshengsir/article/details/104467212