ハッキングやグーグルの少し(stackoverflowing、むしろ)出来上がりの列の後ろに/先を含め記載されています! - あなたが望むものを正確に実行する作業用のbashスクリプト:各カテゴリのブランチを持つ3つのファイルを作成します(最新、マスターより先行)。
NB!引きこもりがありますので、変更を隠しておきます。
git checkout master
git branch -r | grep -v '\->' | while read remote; do git branch --track "${remote#origin/}" "$remote"; done #set tracking of all remote branches
git fetch --all # fetch all remote branches to the local repository
git pull --all # update all local branches
for BRANCH in `git branch --list | sed 's/\*//g'`
do
COMMITS_AHEAD_OF_MASTER=`git log master..$BRANCH`
if [ -z "$COMMITS_AHEAD_OF_MASTER" ]
then
COMMITS_BEHIND_MASTER=`git log $BRANCH..master`
if [ -z "$COMMITS_BEHIND_MASTER" ]
then
echo $BRANCH >> up_to_date.txt
else
echo $BRANCH >> behind.txt
fi
else
echo $BRANCH >> ahead.txt
fi
done