Home  >  Article  >  Development Tools  >  How to upload project to github using vscode

How to upload project to github using vscode

王林
王林Original
2019-11-08 16:04:524291browse

How to upload project to github using vscode

1. Create a local warehouse

How to upload project to github using vscode

At this time, you can find that there is an additional .git folder in the folder, which is Git Used to track and manage repositories. If you can't see it, it's because it is a hidden file by default, then you need to set it up to make the hidden files visible.

2. Submit the project to the local warehouse

How to upload project to github using vscode

3. Establish contact with the remote warehouse of github

git remote add origin https://gitlab.com/Happiness/hellod.git

4.1. Push the project Go to the main branch master

git push -u origin master

4.2. Push the project to the branch, such as devcode branch

Create branch

git branch devCode

Switch branch

git checkout devCode

5. Add the branch to github

git push --set-upstream origin devCode

Recommended tutorial: vscode tutorial

The above is the detailed content of How to upload project to github using vscode. For more information, please follow other related articles on the PHP Chinese website!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn