Home>Article>Development Tools> How to submit code to git with vscode

How to submit code to git with vscode

王林
王林 Original
2020-02-10 16:22:56 12132browse

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

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(还没有验证)

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!

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