From 8920d065db1f2b29103f12af2e1ec8201cb14259 Mon Sep 17 00:00:00 2001 From: "ithink.chan" Date: Thu, 2 Jan 2020 09:31:06 +0800 Subject: [PATCH] =?UTF-8?q?=E8=A1=A5=E5=85=85=E4=B8=BA=E6=9C=AC=E5=9C=B0?= =?UTF-8?q?=E5=88=86=E6=94=AF=E6=8C=87=E5=AE=9A=E4=B8=80=E4=B8=AA=E4=B8=8E?= =?UTF-8?q?=E4=B9=8B=E5=AF=B9=E5=BA=94=E7=9A=84=E8=BF=9C=E7=A8=8B=E5=88=86?= =?UTF-8?q?=E6=94=AF=E6=96=B9=E6=B3=95.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: ithink.chan --- Software/Applications/Git/Git_使用说明.md | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/Software/Applications/Git/Git_使用说明.md b/Software/Applications/Git/Git_使用说明.md index 9ac3798..be2be84 100644 --- a/Software/Applications/Git/Git_使用说明.md +++ b/Software/Applications/Git/Git_使用说明.md @@ -111,7 +111,7 @@ git 支持 http、https、ssh 格式的 URL 访问。 通过以下命令创建新的本地分支: - git branch + git branch 还可以通过以下命令查看分支情况: @@ -120,19 +120,23 @@ git 支持 http、https、ssh 格式的 URL 访问。 使用下列命令切换到对应分支: - git checkout + git checkout 删除某本地分支的命令为: - git branch -d + git branch -d 删除某远程分支的命令为 - git push --delete + git push --delete 将某个分支与当前分支合并的命令为: - git merge + git merge + +以下命令为本地分支指定一个与之对应的远程分支: + + git branch --set-upstream-to=origin/ ## 查看历史