How does visual studio host the program to github or how to host the project to gitHub

1. First you need to apply for an account on github

申请完成后你就已经成功了50%!

2. It is recommended to download a GitHub plugin to vs

Extension = "Manage extension (please search if you can't find it).
Insert picture description here

2. Host the project to github

2.1 Create project

Create project

  1. First create a project to be added to source controlproject

Choose Git hosting

  1. Click Tools=》Options=》Source Code Manager=》Plugin Selection=》Git
    Choose git hosting

Sign in

  1. Right-click the project and select => Create Git Repository (you will be prompted to log in at this time, if you are not prompted, you are logged in)
    Start hosting

View

  1. After the warehouse is created at this time, the webpage refreshes your github warehouse and still cannot see the newly created warehouse.
    warehouse

Project synchronization

  1. At this time, the project needs to be synchronized, and select synchronization in the team explorer.
    Insert picture description here

release

  1. Continue to click Publish to GitHub in the pop-up box

Sign in

  1. Then you will enter this step. Click Add/Change Accounts to add or modify accounts. The account login interface on the left will pop up.
    Note : It is best to log in by email. I log in with my username, but I haven't logged in for a long time. The email is logged in at once.
    Sign in

Click to publish

  1. Next you will see that the Publish button is available. We clicked it hard.
    Insert picture description here

After the previous step, the warehouse has been built. Just synchronize it.

Insert picture description here

How to submit changes to the program

  1. For any file editing of the current project, there will be changes to the small pen, you can click here.
  2. Or click the small house, and then click Change.

change
change

Submit changes

接下来输入更改了点什么内容往备注框中,再点击全部提交,更改的内容就发布到修改中了。

Remember that this step is only submitted to the local Git
submit

Submit changes to GitHub

Just changed, it will show a pending submission in the up arrow.
To be uploaded to GitHub
Then click the push button to push to GitHub. Other members can also get this update normally.
Push

PS: There are a lot of various operations, and I know very little. So you need to explore more.
I changed the project midway, sorry, because I am also testing/:dog head

To know how to switch hosting, please see
How to migrate a project from TFS to git or git to TFS

Guess you like

Origin blog.csdn.net/hello_mr_anan/article/details/108378491