Git bash常用命令

最近项目中使用到了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服务器上。

posted @ 2012-03-21 14:39  深蓝  阅读(25082)  评论(1编辑  收藏  举报

我要啦免费统计