Skip to content

Instantly share code, notes, and snippets.

@JiboStore
Created December 20, 2017 14:36
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save JiboStore/224bb041780c32c758d06c74b5c9a07d to your computer and use it in GitHub Desktop.
Save JiboStore/224bb041780c32c758d06c74b5c9a07d to your computer and use it in GitHub Desktop.
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
@JiboStore
Copy link
Author

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment