在github 註冊個賬號並記住賬號密碼
git 經常使用的命令集合(轉載)
2 在GitHub創建項目會給你一段提示
echo "# cathost" >> README.md
git init
git add README.md
git commit -m "first commit"
git remote add origin https://github.com/xx/xx.git
git push -u origin master
…or push an existing repository from the command line
git remote add origin https://github.com/xx/xx.git
git push -u origin master
在git 命令窗口複製即可
git add 表示添加
git commit -m "註釋"表示提交
git push origin master 提交到終端 也就相當於提交到服務器
git pull origin master 從服務器端更新到本地