💎一站式轻松地调用各大LLM模型接口,支持GPT4、智谱、星火、月之暗面及文生图 广告
# C.24 GitPullTask Fetch from and merge with another repository or a local branch. See official [documentation](http://www.kernel.org/pub/software/scm/git/docs/git-pull.html). Table C.25:聽Attributes NameTypeDescriptionDefaultRequired`gitPath``String`Path to Git binary/usr/bin/gitNo`repository``String`Path to Git repositoryn/aYes`all``Boolean`Fetch all remotes`false`No`source``String`The "remote" repository that is the source of a fetch or pull operation. See <repository> in [git-pull](http://www.kernel.org/pub/software/scm/git/docs/git-pull.html).originYes, if allRemotes set to false`refspec``String`See <refspec> in [git-pull](http://www.kernel.org/pub/software/scm/git/docs/git-pull.html).n/aNo`strategy``String`Merge strategy. One of "resolve", "recursive", "octopus", "ours", or "subtree". See <strategy> in [git-pull](http://www.kernel.org/pub/software/scm/git/docs/git-pull.html).n/aNo`strategyOption``String`Pass merge strategy specific option through to the merge strategy. See <strategy-option> in [git-pull](http://www.kernel.org/pub/software/scm/git/docs/git-pull.html).n/aNo`rebase``Boolean`See --rebase in [git-pull](http://www.kernel.org/pub/software/scm/git/docs/git-pull.html).`false`No`norebase``Boolean`See --no-rebase in [git-pull](http://www.kernel.org/pub/software/scm/git/docs/git-pull.html).`false`No`tags``Boolean`Enable tag references following. See --tags in [git-pull](http://www.kernel.org/pub/software/scm/git/docs/git-pull.html).`false`No`notags``Boolean`Disable tag references following. See --no-tags in [git-pull](http://www.kernel.org/pub/software/scm/git/docs/git-pull.html).`false`No`keepFiles``Boolean`See --keep in [git-pull](http://www.kernel.org/pub/software/scm/git/docs/git-pull.html).`false`No`append``Boolean`See --append in [git-pull](http://www.kernel.org/pub/software/scm/git/docs/git-pull.html).`false`No`quiet``Boolean`Quiet, suppress feedback messages. See --quiet in [git-pull](http://www.kernel.org/pub/software/scm/git/docs/git-pull.html).`false`No`force``Boolean`Force update. See --force in [git-pull](http://www.kernel.org/pub/software/scm/git/docs/git-pull.html).`false`No C.24.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}" /> <!-- pull from all remotes --> <gitpull repository="${repo.dir.resolved}" all="true" /> <!-- pull remote origin/foobranch and rebase when merging --> <gitpull repository="${repo.dir.resolved}" source="origin" refspec="foobranch" strategy="recursive" keep="true" force="true" quiet="true" rebase="true" /> ```