directory

One, create a project

Two, create a repository

Third, push to GitHub

Fourth, modify the file and push

How do I pull code from GitHub

GitHub is a hosting platform for open source and private software projects. It is named GitHub because it only supports Git as the only repository format for hosting.

One, create a project

Create a project with Visual Studio 2019 named GitHubTest

Two, create a repository

Right-click on your solution and click Create Git repository

For the first time, you need to log into your GitHub account. Sometimes the network is a bit slow, so just wait

Fill in the instructions to uncheck the private repository so that everyone can access it

Fill in the information, click Create and push

Third, push to GitHub

The network is always bad, this is when GitHub has a new repository but no content

Just resubmit it

Refresh GitHub and you have content

Fourth, modify the file and push

Now modify the Program file and save it. You can see that the Program file in Solution Explorer on the right has a red check mark indicating that it has been modified. Now you can right-click and submit it to GitHub

Fill in the instructions and submit, click Submit All, and then click Push

Refresh on GitHub and change it successfully!

How do I pull code from GitHub

Open VS2019 and click Clone Repository

Copy the link on the GitHub project

Paste it into the input box and in the E:\Projects new folder GitHubTest2, click Clone

Complete the WC…