重拾git 命令

在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 從服務器端更新到本地

 

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章