Tuesday, July 05, 2016

GitTfs commands I use every day, round 2

I modified my TfsFetch.sh script to display the name of the current branch. This is to aid in situations where feature branches are being used.

Here's the current script:

#!/bin/sh
# Fetch all TFS repos
git submodule foreach git tfs fetch
printf "\n"
# Show current banch and unmerged TFS commits for each subproject
git submodule foreach 'git rev-parse --abbrev-ref HEAD; git tree tfs/default --not HEAD'
view raw TfsFetch.sh hosted with ❤ by GitHub