ThinkChat2.0新版上线,更智能更精彩,支持会话、画图、阅读、搜索等,送10W Token,即刻开启你的AI之旅 广告
# C.25 GitPushTask Update remote refs along with associated objects. See official [documentation](http://www.kernel.org/pub/software/scm/git/docs/git-push.html). Table C.26:聽Attributes NameTypeDescriptionDefaultRequired`gitPath``String`Path to Git binary/usr/bin/gitNo`repository``String`Path to Git repositoryn/aYes`all``Boolean`Push all references`false`No`destination``String`The "remote" repository that is destination of a push operation. See <repository> in [git-push](http://www.kernel.org/pub/software/scm/git/docs/git-push.html).originYes, if allRemotes set to false`refspec``String`See <refspec> in [git-push](http://www.kernel.org/pub/software/scm/git/docs/git-push.html).n/aNo`mirror``Boolean`See --mirror in [git-push](http://www.kernel.org/pub/software/scm/git/docs/git-push.html).`false`No`delete``Boolean`Delete "remote" reference. Same as prefixing the refspec with colon. See --delete in [git-push](http://www.kernel.org/pub/software/scm/git/docs/git-push.html).`false`No`tags``Boolean`Push all references under refs/tags. See --tags in [git-push](http://www.kernel.org/pub/software/scm/git/docs/git-push.html).`false`No`quiet``Boolean`Quiet, suppress feedback messages. See --quiet in [git-push](http://www.kernel.org/pub/software/scm/git/docs/git-push.html).`false`No`force``Boolean`Force update. See --force in [git-push](http://www.kernel.org/pub/software/scm/git/docs/git-push.html).`false`No C.25.1 Example ``` <property name="repo.dir" value="./relative/path/to/repo" /> <resolvepath propertyName="repo.dir.resolved" file="${repo.dir}" /> <!-- clone repository --> <gitclone repository="git://github.com/path/to/repo/repo.git" targetPath="${repo.dir.resolved}" /> <!-- push branch "master" into "foobranch" on "origin" remote --> <gitpush repository="${repo.dir.resolved}" refspec="master:foobranch" tags="true" /> <!-- create new branch "newbranch" on "origin" remote --> <gitpush repository="${repo.dir.resolved}" refspec="master:newbranch" quiet="true" /> <!-- delete "newbranch" branch from "origin" remote --> <gitpush repository="${repo.dir.resolved}" delete="true" refspec="newbranch" quiet="true" /> ```