vscode project submission to the cloud code + the code will be submitted to the repository modified portion clone Push + Pull +

vscode project documents submitted to the cloud + would modify some code into the repository Push + Pull + clone

A, vscode project documents submitted to the cloud code

1.cd D:\project

2.d:

3.git init

4.git config --global user.name "xxxx"

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

5.git add .

6.git -m "initial version" commit

[Note: in cmd hit here, to create a cloud code repository caiwu]

7.git remote add origin copied URL

8.git push -u origin master -f

 

Second, the code changes will be submitted to the warehouse section

1, git back VSCode open workspace

 

 Click the + sign to submit all files to the staging area.

2, open the menu choices - submit been buffered (Commit Staged)

 

3, in a message box input Master (or other branches), press enter Submit

 

 4, then all the temporary code push cloud

 

 

Third, the pull codes (pull)

Click on the menu item to open the pull can be synchronized with vscode.

 

 

Fourth, the project to a local clone

1、git config --global user.name "ASxx"
git config --global user.email "[email protected]"
2、git config --global credential.helper store

# Then enter the following command to open Git Bash
3, cd designated storage directory
4, git clone warehouse address

Guess you like

Origin www.cnblogs.com/kirin1105916774/p/11938719.html