申請好了https://github.com/帳號,
也建立了repository : nodejs,要如何將新編寫的程式檔放到github,
一開始執行
git clone https://github.com/%5Bgithub帳號%5D/nodejs.git
但出現錯誤訊息
[fatal: unable to access 'https://github.com/[github帳號]/nodejs.git': SSL certificate problem: self signed certificate in certificate chain].
後來找到可以加上-c http.sslVerify=false以略過ssl檢核,
指令如下
1.git -c http.sslVerify=false clone https://github.com/[github帳號]/nodejs.git 2.git add diff_file.js 3.git commit -m "Add diff_file" 4.git push -u origin master 5.git remote add origin https://github.com/[github帳號]/nodejs.git
其中master為brach。
