Listing each branch and its last revision's date in Git

后端 未结 11 760
傲寒
傲寒 2020-11-29 15:07

I need to delete old and unmaintained branches from our remote repository. I\'m trying to find a way with which to list the remote branches by their last modified date, and

11条回答
  •  情话喂你
    2020-11-29 15:47

    Or you can use my PHP script, https://gist.github.com/2780984

    #!/usr/bin/env php
    $output[$k]['time']) {
                echo "This branch should be deleted $line\n";
                exec("git branch -d $line");
            }
            $k++;
        }
    ?>
    

提交回复
热议问题