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