vscode uses git to connect to github

Table of contents

1. Install git and vscode

2. Configuration KeyEdit

 3. Create a remote warehouse on github

 4. vscode upload to github

①Open the folder where the code is located in vscode

②Click Source Code Management in the left column

③ Initialize the repository

④ Add remote repository.

⑤ Enter the remote warehouse address

⑥ Upload to the remote warehouse

 5. Using vscode to submit a commit will always get stuck, turning around

1. Install git and vscode

1. Vscode download address: Visual Studio Code - Code Editing. Redefined

   Git download address: ①Official website (download speed is slow): Git - Downloads (git-scm.com)

                         ② Mirror source (recommended): https://npm.taobao.org/mirrors/git-for-windows/

2. Detailed installation steps of git: (5 messages) Getting Started with Git: mirror download, installation, local configuration and Git local file upload to gitee Detailed Explanation_git mirror download_highly immature bacteria blog-CSDN bloghttps: / /blog.csdn.net/weixin_51261234/article/details/125710044

2. Configuration key

Copy the key to the github settings through the method of generating the key in the git installation link.

 3. Create a remote warehouse on github

1. First create a new repository on GitHub, click the "+" sign in the upper right corner, and select "New repository"

Enter the warehouse name in "Repository name", you can enter the introduction content of the warehouse in "Description", and the rest are default.

Then click "Create Repository" to complete the creation of the remote warehouse.

 

 4. vscode upload to github

①Open the folder where the code is located in vscode

②Click Source Code Management in the left column

③ Initialize the repository

④ Add remote repository.

⑤ Enter the remote warehouse address

​At this point, the remote warehouse and the local warehouse are connected.

⑥ Upload to the remote warehouse

 5. Using vscode to submit a commit will always get stuck, turning around

 solution:

Uncheck the option here, then manually enter the message when committing and click submit, and finally it is successfully resolved!

 

 

Guess you like

Origin blog.csdn.net/m0_63569670/article/details/130359789