소스 검색

增加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
 
 
 二、项目基本介绍