Quiero usar esta function bash para llevar mi repository local a dos repos remotos, pero no estoy seguro si esto funcionará.
p_foo_0() { git add -A . git commit -m "test" git push origin master echo "success" } p_foo_1() { git add -A . git commit -m "test" git push heroku master echo "success" }
Configure sus controles remotos usando:
git remote set-url all --push --add <first-repo> git remote set-url all --push --add <second-repo>
Ahora puedes usar:
git push all master
para presionar a ambos repos