天天看點

git簡單使用

1.建立帳号

https://github.com

建立項目

安裝用戶端

導入項目到本地

git  clone

https://github.com/

使用者名/項目test

cd test

進入到該托管項目的根目錄。

輸入

git add .    

将改動的地方添加到版本管理器

git c

git  commit -m "changes log"  

送出到本地的版本控制庫裡,

引号裡面是你對本次送出的說明資訊。

最後輸入

git push -u origin master  

将你本地的倉庫送出到你的github賬号裡,

此時會要求你輸入你的github的賬号和密碼。