Created
October 9, 2019 06:30
-
-
Save usucode/0fe9060e62d591c64e6342c0a9ade48a to your computer and use it in GitHub Desktop.
複数のgit push
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# 例としてoriginとhkrcにリモートリポジトリを登録した場合 | |
# エラー処理 | |
if [ $# -ne 1 ]; then | |
echo "指定された引数は$#個です。" 1>&2 | |
echo "実行するには1個の引数が必要です。" 1>&2 | |
exit 1 | |
fi | |
# 実行 | |
git push origin develop | |
git push hkrc develop |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment