Visual Studio Code integrates with Github

Source: Internet
Author: User



Using visual Studio code for NODEJS development is convenient, and it is necessary to use GitHub for code management for better development.



Visual Studio code already integrates the GIT components:



Https://github.com/git-for-windows/git/releases/download/v2.8.1.windows.1/Git-2.8.1-64-bit.exe



Download and install, and then start configuring GitHub






1. Set the global git user name


$ git config --global user.name mengkzhaoyun
$ git config --global user.email [email protected]





2. Mapping to a local directory


$ cd D:\Libraries\Documents\Visual Studio Code
$ git clone https://github.com/Mengkzhaoyun/HZW.git
Cloning into ‘HZW‘...
remote: Counting objects: 1690, done.
remote: Compressing objects: 100% (1441/1441), done.
remote: Total 1690 (delta 212), reused 1675 (delta 200), pack-reused 0
Receiving objects: 100% (1690/1690), 6.74 MiB | 58.00 KiB/s, done.
Resolving deltas: 100% (212/212), done.
Checking connectivity... done.
Checking out files: 100% (1643/1643), done.





3. Check that the settings are set .


$ git remote -v
origin https://github.com/Mengkzhaoyun/HZW.git (fetch)
origin https://github.com/Mengkzhaoyun/HZW.git (push) 


If the above information is not present, you can open the project directory remapping


$ cd D:\Libraries\Documents\Visual Studio Code\HZW
$ git init
$ git remote add origin  https://github.com/Mengkzhaoyun/HZW.git



4. Modify code, Commit, Push



Commit commit changes to local,



Push is the commit update to the GitHub server



Visual Studio Code integrates with Github


Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.