Created
December 20, 2017 14:36
-
-
Save JiboStore/224bb041780c32c758d06c74b5c9a07d to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
for DIRECTORY in */; | |
do | |
pushd "${DIRECTORY}" | |
echo "${DIRECTORY}" >> ../git-remote.txt | |
echo "===================================================================" >> ../git-remote.txt | |
git remote -v >> ../git-remote.txt | |
echo "-------------------------------------------------------------------" >> ../git-remote.txt | |
git log -1 >> ../git-remote.txt | |
popd | |
done | |
# reference: https://stackoverflow.com/a/40584629/474330 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
put in in your `/Development/project' directory and run, it will go through each of your project directory and write all your git remote to a file