用户工具

站点工具


git

差别

这里会显示出您选择的修订版和当前版本之间的差别。

到此差别页面的链接

git [2025/11/22 13:29] – 创建 bestonygit [2025/11/22 13:31] (当前版本) – [清理本地分支] bestony
行 1: 行 1:
 ====== Git ====== ====== Git ======
 ===== 清理本地分支 ===== ===== 清理本地分支 =====
-强制删除所有本地分支(除了当前分支)+强制删除所有本地分支(除了当前分支,所以执行时要切换到 main
 <code copy Bash [enable_line_numbers="true"]>git branch | grep -v "^\*" | xargs git branch -D</code> <code copy Bash [enable_line_numbers="true"]>git branch | grep -v "^\*" | xargs git branch -D</code>
  
 非强制删除 非强制删除
 <code copy Bash [enable_line_numbers="true"]>git branch | grep -v "^\*" | xargs git branch -d</code> <code copy Bash [enable_line_numbers="true"]>git branch | grep -v "^\*" | xargs git branch -d</code>
/storage/data/pages/git.txt · 最后更改: bestony

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki