Skip to content

Instantly share code, notes, and snippets.

@pankajpatel
Created February 15, 2017 18:57
Show Gist options
  • Save pankajpatel/141222b8525b972d4119751d1425f1de to your computer and use it in GitHub Desktop.
Save pankajpatel/141222b8525b972d4119751d1425f1de to your computer and use it in GitHub Desktop.
#!/bin/bash
echo "Brahch Listing"
cd /c/xampp/htdocs/
cd ./REPO1
x="$(git rev-parse --abbrev-ref HEAD)"
printf "REPO1\t$x"
cd ./REPO2
x="$(git rev-parse --abbrev-ref HEAD)"
printf "REPO2\t$x"
cd ./REPO3
x="$(git rev-parse --abbrev-ref HEAD)"
printf "REPO3\t$x"
cd ./REPO4
x="$(git rev-parse --abbrev-ref HEAD)"
printf "REPO4\t$x"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment