Upload a project to github

1. Create a new repository
2. git clone "path of new repository"
3. cd "project name"
4. echo "# project name" >> README.md
5. git init
6. git add README.md
7. move all codes to the path under the project folder
8. git status (optional)
9. git add .
10. git commit -m "first commit"
11. git push / git push --set-upstream origin master

*If you got the message: Could not resolve host: github.com

key in:
$ git config --global --unset http.proxy
$ git config --global --unset https.proxy

and then restart the linux system, the problem will be solved.

Reference:
[1] GitHub 入門(二) — 使用終端機上傳檔案到GitHub
[2] https://markdown.tw/

留言

這個網誌中的熱門文章

Tuing PID parameters in QGroundcontrol (2)

Useful PX4 Parameters

Burn linux image to eMMC storage on Banana Pi M3