瀏覽代碼

增加git命令介绍

robin 6 年之前
父節點
當前提交
6cfe09cb0a
共有 1 個文件被更改,包括 6 次插入0 次删除
  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
 
 
 二、项目基本介绍