Home > Development Tools > VSCode > body text

How to upload local project to github with vscode

王林
Release: 2020-04-05 14:07:10
Original
3952 people have browsed it

How to upload local project to github with vscode

Upload the local project to github

1. Create a local warehouse

How to upload local project to github with vscode

You can find the folder at this time There is an additional .git folder inside, which is used by Git to track and manage the repository. 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 local project to github with vscode

3. Establish contact with the remote warehouse of github

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

4. Push the project Go to the main branch master

git push -u origin master
Copy after login

5. Push the project to the branch such as devCode branch

Create branch

git branch devCode
Copy after login

Switch branch

git checkout devCode
Copy after login

6. Add the branch to github

git push --set-upstream origin devCode
Copy after login

Recommended related tutorials: vscode tutorial

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

Related labels:
source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!