close

基本常用指令:

git checkout [commit id #C] : 把HEAD切到[#C]這筆commit

git checkout [branch name #A] : 切換到[#A]這個branch

git revert [commit id #C] : revert [#C] 這筆commit 

git reset [commit id #C] :把HEAD退到[#C]這筆commit

git branch : 顯示local端的branch

 

git fetch : update server上的資料到local端

git pull : 讓local端的git狀態與server端同部

git push origin : 把現在local端的更新推到remote server上

 

推薦不錯的網站:

Git Tutorials: https://www.atlassian.com/git/tutorials 

Git SCM: https://git-scm.com/

 

arrow
arrow

    Mk 發表在 痞客邦 留言(0) 人氣()