Skip to content

Instantly share code, notes, and snippets.

@usucode
Created October 9, 2019 06:30
Show Gist options
  • Save usucode/0fe9060e62d591c64e6342c0a9ade48a to your computer and use it in GitHub Desktop.
Save usucode/0fe9060e62d591c64e6342c0a9ade48a to your computer and use it in GitHub Desktop.
複数のgit push
#!/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