File tree Expand file tree Collapse file tree 2 files changed +38
-0
lines changed Expand file tree Collapse file tree 2 files changed +38
-0
lines changed Original file line number Diff line number Diff line change @@ -402,6 +402,43 @@ correct key is provided set in `git_crypt_key`.
402402 the repository.
403403 </td>
404404 </tr>
405+ <tr>
406+ <td><code>fetch</code><br/><i>Optional</i></td>
407+ <td>
408+ Additional branches to fetch and make available in the cloned repository.
409+ This is useful when you need to perform operations like rebasing or
410+ merging with branches other than the one being checked out.
411+ <br/><br/>
412+ Specify as a list of branch names. Each branch will be fetched from
413+ origin and made available as a local branch.
414+ <br/><br/>
415+ <strong>Example:</strong> Fetching additional branches for rebasing
416+ <pre>
417+ - get : source-code
418+ params :
419+ fetch :
420+ - develop
421+ - main
422+ - feature/experimental
423+ </pre>
424+ After the <code>get</code> step completes, you can perform operations
425+ like :
426+ <pre>
427+ - task : rebase-on-main
428+ config :
429+ platform : linux
430+ inputs :
431+ - name : source-code
432+ run :
433+ path : sh
434+ args :
435+ - -exc
436+ - |
437+ cd source-code
438+ git rebase main
439+ </pre>
440+ </td>
441+ </tr>
405442 <tr>
406443 <td><code>fetch_tags</code><br/><i>Optional</i></td>
407444 <td>
Original file line number Diff line number Diff line change 11{
22 "depth" : " " ,
3+ "fetch" : " " ,
34 "fetch_tags" : " " ,
45 "submodules" : " " ,
56 "submodule_recursive" : " " ,
You can’t perform that action at this time.
0 commit comments