git_bash常用命令

原文链接:http://www.cnblogs.com/studyzy/archive/2012/03/21/2409863.html
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服务器上。

发表评论?

0 条评论。

发表评论


注意 - 你可以用以下 HTML tags and attributes:
<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>