3 Enter the directory of the project to be uploaded on the local computer
1)git init
initialize a git
2) vim .gitignore add and write this file
node_modules/
It means to ignore this folder and its contents when uploading, because I am uploading the nodejs project file, so I don't need to upload node_modules
3) git add . After adding code to the local warehouse, there is a solid dot that needs to be added. Here you need to execute a command git config core .autocrlf false to ignore "warning: LF will be replaced by CRLF in XXXXXXXXXXXXXX." error
4) git commit -m 'first version'
Version remarks
5) git remote add origin https://github.com/jasonzhangdong/auth2.0test.git
Associate the code to github, the following url is the path copied from the second part
6)git push -u origin master
push the code up
4 Complete the upload of the code,
The premise of all these steps is that you have a github account, and the github account has been associated with your computer, and the secret key has been configured. how to configure
http://www.runoob.com/w3cnote/git-guide.html refer to the rookie
Reference address 1: https://blog.csdn.net/jasonzds/article/details/73647671
Reference address 2: https://www.cnblogs.com/olive27/p/5981924.html Thank you very much for this picture and text