In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-16 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 use github in vscode. The editor thinks it is very practical, so share it with you as a reference and follow the editor to have a look.
1. Download and install git and add the path to the environment variable, enter
Git-version
If the version number is displayed, the installation is successful.
2. Create a new warehouse on github. Such as: myrepo
3. Create a new folder locally as the working folder for VSCode code. For example: mycode
4. Mycode is both the code working folder of VSCode and the local repository of Git. Enter mycode from the command line. Enter git init
Git init
5. Add a user name and mailbox. This username and mailbox is the username and mailbox used when registering for GitHub:
Git config-global user.name "myname" git config-global user.email "myname@mymail.com"
6. Generate key. Continue to enter under this directory:
Ssh-keygen-t rsa-C "myname@mymail.com"
After the command is executed, a file named id_rsa.pub is generated. Open the file with a text editor and copy the full text.
7. Open the myrepo warehouse on github. Enter setting, set up deploy keys, and paste the contents of id_rsa.pub into it. The title corresponding to the key is generated as myname@mymail.com by default.
8. Bind local folder and github repository
Git remote add mycode git@github.com:myname/myrepo.git
9. Set up and test the connection
Ssh-T git@github.com
10. Pull first, then push in turn.
Git pull mycode mastergit push-force mycode master
11. After the above configuration is completed, you can use VSCode to open the mycode folder for related operations. At this point, any changes that occur under this folder will appear on the VSCode Source Control icon with the corresponding number of files that have changed. After clicking on the "source code control" picture, it will list all the changed file names, click on the... in the upper right corner, and carry out the "submit" operation.
12. Check the myrepo of the GitHub after the submission will change accordingly. If there is no change, open the console (ctrl+ `) in VSCode and select "output" to see if there is any relevant error message and adjust it according to the error message.
Thank you for reading! This is the end of this article on "how to use github in vscode". 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 for more people to see!
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.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.