From 04dfd6e28050b0cef6f33851faf87545e5355f23 Mon Sep 17 00:00:00 2001 From: lxsz Date: Tue, 25 Aug 2020 11:16:36 +0800 Subject: [PATCH] Update git.txt --- tools/git.txt | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tools/git.txt b/tools/git.txt index a114669..431d280 100644 --- a/tools/git.txt +++ b/tools/git.txt @@ -199,6 +199,8 @@ git branch -D 强制删除分支(丢弃未合并分支) ############################################################################## User 1: git remote [-v] 查看远程库信息(-v 查看详细信息) +git remote update origin --prune 更新分支列表(更新远程分支列表) +git remote update origin -p 更新分支列表(更新远程分支列表) git push origin [master/dev/...] 推送指定分支到远程 User 2: git clone 克隆到本地(只能克隆master)