Download and install the Windows installation document Git-2.16.2-64-bit Double-click to install (the installation process is not detailed)
Open the git client
new code command
mkdir /c/code
Enter the directory (corresponding to the directory under the C drive of Windows)
cd /c/code
Execute the command to generate the secret key /c/Users/liuym/.ssh/id_rsa
ssh-keygen.exe
View key
cat /c/Users/liuym/.ssh/id_rsa
Add key in gitlab
Set user email and user name
git config --global user.email "[email protected]" git config --global user.name "Your Name"
Pull code from gitlab
git clone [email protected]:web/web-demo.git
Modify files or add files to submit
git add * git commit -m "change index.html" git pull