Home > Development Tools > VSCode > body text

How to submit code to git with vscode

王林
Release: 2020-02-10 16:22:56
Original
12186 people have browsed it

How to submit code to git with vscode

First create the project in the git repository and get the clone address;

Then enter the local project;

git init
git remote add origin https://git.oschina.net/name/package.git
Copy after login

Then open it with vscode folder, you can see that master exists in the lower left corner.

How to submit code to git with vscode

How to submit code to git with vscode

Click the check mark to submit the code to the local warehouse. You need to enter the submission information.

How to submit code to git with vscode

Then push the code

How to submit code to git with vscode

When pushing, you need to enter the user name and password to solve the problem of frequently entering the user name and password question.

How to submit code to git with vscode

git config --global credential.helper store(还没有验证)
Copy after login

Related recommendations: vscode tutorial

The above is the detailed content of How to submit code to git 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!