我想使用这些bash函数将本地存储库推送到两个远程存储库,但是我不确定这是否可行。
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"
}
使用以下方法配置您的遥控器:
git remote set-url all --push --add <first-repo>
git remote set-url all --push --add <second-repo>
现在您可以使用:
git push all master
推动两个回购
本文收集自互联网,转载请注明来源。
如有侵权,请联系 [email protected] 删除。
我来说两句