Git status over all repo's

后端 未结 4 1014
隐瞒了意图╮
隐瞒了意图╮ 2020-12-06 07:17

What tools, if any, are available to show the status of my git repo\'s and how much they are forward/behind versus their remotes? I\'m imagining something like this exists:<

4条回答
  •  星月不相逢
    2020-12-06 08:09

    Quick one-liner that assumes you're in a folder containing lots of git repo folders:

    find . -maxdepth 1 -type d -exec sh -c "(cd '{}' && pwd &&  git status)" \;
    

提交回复
热议问题