📜  gitlab stale 分支 api 脚本 - 任何代码示例

📅  最后修改于: 2022-03-11 15:00:46.106000             🧑  作者: Mango

代码示例1
for branch in `git branch -r | grep -v HEAD`; do \
    echo -e `git show --format="%cr %an" $branch | head -n 1` \\t$branch; \
  done | \
  grep -e '.. months' -e '[8-9] months' | grep 'origin/' | \
  sed 's/.*origin\///' | \
  xargs -n 1 echo git push origin --delete | bash