Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

The method of adding files to git using vscode

2025-02-27 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Internet Technology >

Share

Shulou(Shulou.com)06/02 Report--

This article is about how to add files to git using vscode. The editor thought it was very practical, so I shared it with you as a reference. Let's follow the editor and have a look.

First of all, we need to sign up for a GitHub account, and then log in

2. After entering GitHub, we need to create a new library, click New repository, and the page is as follows:

3. Open the newly created library on GitHub, click Clone or download, and then click the file icon with arrow on the right to copy the address.

4. Continue to enter git remote add origin https://github.com/yhlp/display.git in VS Code

5. Enter git push-u origin master, and we will find an error after running it.

This is because the README.md file in the library is not downloaded, so all we need to do is type git pull-- rebase origin master. After execution, we will find that there is an extra file in the left folder.

6. At this point, we will execute git push-u origin master. After the execution, the file has been successfully submitted to GitHub.

Thank you for reading! On the use of vscode to add files to the git method to share here, I hope the above content can be of some help to you, so that you can learn more knowledge. If you think the article is good, you can share it and let more people see it.

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Internet Technology

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report