私は以下を持っていますgroovy script
PushCommand push=git.push();
push.setRemote("my remote");
push.setPushAll(); //Push all branches under refs/heads/*.
push.setForce(true); //Sets the force preference for push operation.
push.call();
私の要件:want to push only changes from one gitinstance to other
setPushAll
: これは、スクリプトが実行されるたびにすべてのリポジトリ データをプッシュするのか、それとも単に変更をコミットするのか (変更のみが必要) ですか?
push.setForce(true)
:これは何に使うのですか?私の場合はそれを使用する必要がありますか?