Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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

This comment has been minimized.

Copy link
Owner Author

JiboStore commented Dec 20, 2017

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
You can’t perform that action at this time.