Use GIT upload files, VSCODE using GIT uploads

GIT use:

1, install git

2, set the user name and E-mail:

  git config --global user.name="haokan1113"

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

3, initialize the local library

  git init

4, log on Github website, establish a remote warehouse

5, clone remote repository (remote to local)

  git clone [email protected]:haokan123456/hao365.git

 

 

 6, first submitted to a remote repository (local to remote)

  git add .

  git commit "first submission" -m

  git push -u origin master

 

 

 

 

 

 7, submitted (not the first time) (local to remote)

  git add .

  git commit -m "resubmitted"

  git push origin master

 

 

 

 

 

 8, update (remote to local)

get pull

 

 

 Key:

VS CODE upload using GIT

1, click submit all, enter a description (the work area to the staging area)

 

 

 

 2. Click Push, uploaded to a remote repository, wait a moment to

 

 

Get Remote File Storage (remote to local)

1. Change the warehouse contents of the file

 

 

 2. Click on the pull, wait a moment to

 

 

Guess you like

Origin www.cnblogs.com/haokan/p/12034319.html