最近項目中使用到了GIT,所以記錄一下GIT中常用的命令。
GIT使用的客戶端有Git Bash:http://code.google.com/p/msysgit/
還有烏龜TortoiseGit:http://code.google.com/p/tortoisegit/
git status查看本地修改與服務器的差異。
git add .將這些差異文件添加,這樣就可以提交了。
git commit –m “這里是注釋”提交更改到服務器。
git checkout master更改到master庫。
git pull將服務器最新的更改獲取到本地。
git merge local master將本地的local合並到遠程的master上。
git push origin master正式提交到遠程的master服務器上。