Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

Github CLI Extension: Tidy

gh tidy does several things:

  • Checks out master/main and pulls the latest from remote origin
  • Runs ‘git gc’ to clean up unnecessary files & optimize your local repo
  • Checks your local branches for ones that show as merged to master, and asks for your permission to delete them
  • Checks your local branches for ones that have their corresponding pull requests merged, and asks for your permission to delete them
  • If flagged, rebases all your local branches to the latest master [HaywardMorihara/gh-tidy]

gh tidy执行几个操作:

  • 检出master/main并从远程origin拉取最新内容
  • 运行’git gc’清理不必要的文件并优化本地仓库
  • 检查本地分支中是否有已合并到master的分支,并询问您是否删除它们
  • 检查本地分支中是否有其对应的拉取请求已合并的分支,并询问您是否删除它们
  • 如果被标记,重新基于最新的master合并您所有的本地分支 [HaywardMorihara/gh-tidy]

install

gh extension install HaywardMorihara/gh-tidy