git学习指南

xiaoxiao2021-02-28  61

最近项目中使用到了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服务器上。
转载请注明原文地址: https://www.6miu.com/read-55387.html

最新回复(0)