💎一站式轻松地调用各大LLM模型接口,支持GPT4、智谱、星火、月之暗面及文生图 广告
# 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" /> ```