text 在项目目录中显示合并的git分支

Posted

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了text 在项目目录中显示合并的git分支相关的知识,希望对你有一定的参考价值。

function show_merged() {
    if [[ -z $1 ]]
    then
        BRANCH=master
    else
        BRANCH="$1"
    fi
    git branch --merged "${BRANCH}" | grep -Ev "${BRANCH}|master"
}

以上是关于text 在项目目录中显示合并的git分支的主要内容,如果未能解决你的问题,请参考以下文章