1. Installation Address: https://git-for-windows.github.io/
Go straight to the next step
2. Install complete Enter the command:
" Your Name " "[email protected]"
3. Create a remote repository
1. Create your own github account;
2. Create SSH key
1). Right-click Git Bash to enter the following command:$ ssh-keygen -t rsa -C "[email protected]"
一路回车即可;
2).登录GitHub点击①所标注的头像选择settings然后依次点击②③新建一个SSH key由于我已经建立了一个所以会呈状态,点开Delete
可以删除创建的key
3).找到由 1)创建出来的key在1)命令执行结束会在用户的主目录下创建.ssh目录,打开该目录下会有id_rsa和id_rsa.pub两个文件,前者为私钥后者为公钥
Open your public key to copy all the contents into the ④ can be the Title for your own defined click.
3. Create a remote repository
4. Create a local repository and establish a connection to the remote repository
$mkdir TEST$CD Test $pwd $git Init
$git remote add origin git@github.com:yourName/test.git
The PWD command displays the current directory origin for the remote warehouse name if you do not like it can be changed yourname for yourself GitHub name remaining for GIT basic operations Command self-consulted.
Git Windows Quick Access GitHub guide