blob: ca01dd79622de09d6cdc3bf310da1efec0b83dba [file] [log] [blame]
Chinthakayala, Sheshashailavas (sc2914)d1569972017-08-28 05:25:46 -09001if [ "$#" != "2" ]
2then
3 echo "Usage $0 gitLocalRepositoryDir branch"
4 exit
5fi
6branch=$2
7localGitRepository=$1
8cd $localGitRepository
9if [ -e "$localGitRepository" ]
10then
11 git checkout $branch
12 echo
13 echo -n "Now on Branch:"
14 git rev-parse --abbrev-ref HEAD
15else
16 echo Git Local repository not set
17fi