【Git】學習筆記--clone和本地修改

1. 在GitHub上新建reposity

2. 將reposity clone到本地PC

git clone命令會在本地主機生成一個目錄,與遠程主機的版本庫同名。若是要指定不一樣的目錄名,能夠將目錄名做爲git clone命令的第二個參數。git

3. 添加主機名

git clone的時候自動加載了fetch和push的主機地址,能夠經過git remote -v來查看。fetch

4. 編輯相關的命令

git add
git commit
git push
經過git status查看當前狀態。blog

參考文獻

【1】http://blog.jobbole.com/71091/rem

相關文章
相關標籤/搜索