How to Push Code Automatic to all repos
Though it is unethical practice, yet we want to push the code to save some time, We can take this approach.
In this video I have explained how to push the code to multiple repositories at a time.
In this video we have written a shell script, The content of the script is given below.
#!/bin/bash
for dir in `find . -type d -name .git | sed -e 's|/.git||'`; do
echo "-------- $dir --------"
cd $dir
git pull
git add -A
git commit -m "updating $dir"
git push
git push --tags
cd -
done