Explorar el Código

增加git命令介绍

robin hace 6 años
padre
commit
6cfe09cb0a
Se han modificado 1 ficheros con 6 adiciones y 0 borrados
  1. 6 0
      README.md

+ 6 - 0
README.md

@@ -54,6 +54,12 @@ CRM项目多版本并行管理基础版本
     git push [<host>] [<localbranch>][:<remotebranch>]  #推送代码,host默认为origin,localbranch默认为当前分支,remotebranch默认为当前分支追踪的分支,当remotebranch不存在时,会在远程主机新建一个同名分支,省略localbranch时,表示删除指定的远程分支,等同于git push <host> --delete <remotebranch>,当前分支与远程分支之间存在追踪关系时,可省略localbranch和remotebranch.如git push hyde hyde:master
     如 git push swaggers swaggers:master
 
+    git pull remotehost remotebranch localbranch		从remotehost主机拉取remotebranch分支代码到localbranch分支
+        
+    git push [<host>] [<localbranch>][:<remotebranch>]	推送代码,host默认为origin,localbranch默认为当前分支,remotebranch默认为当前分支追踪的分支
+                                                                当remotebranch不存在时,会在远程主机新建一个同名分支
+                                                                省略localbranch时,表示删除指定的远程分支,等同于git push <host> --delete <remotebranch>
+                                                                当前分支与远程分支之间存在追踪关系时,可省略localbranch和remotebranch
 
 
 二、项目基本介绍