# Can you get data from a different branch?

**URL:** <https://forum.buildkite.community/t/can-you-get-data-from-a-different-branch/2133>\
**Category:** General\
**Created:** [July 11, 2022, 2:06am UTC](https://forum.buildkite.community/t/can-you-get-data-from-a-different-branch/2133 "2022-07-11T02:06:44Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Joe](https://sea2.discourse-cdn.com/flex016/user_avatar/forum.buildkite.community/joe/32/1080_2.png) [@Joe](https://forum.buildkite.community/u/Joe)\
**Post date:** [July 11, 2022, 2:06am UTC](https://forum.buildkite.community/t/can-you-get-data-from-a-different-branch/2133/1 "2022-07-11T02:06:44Z")

</div>

Can you populate input step from a different branch?

branch - a → main branch with the build  
input → get config files from branch - b

branch - b → config files

---

<div class="post-metadata">

**Author:** ![paula](https://sea2.discourse-cdn.com/flex016/user_avatar/forum.buildkite.community/paula/32/954_2.png) [@paula](https://forum.buildkite.community/u/paula)\
**Post date:** [July 11, 2022, 5:34am UTC](https://forum.buildkite.community/t/can-you-get-data-from-a-different-branch/2133/2 "2022-07-11T05:34:15Z")

</div>

Hey @Joe I’m not completely sure what you are trying to do here.

We do have an API you can use to unblock steps which could be used from anywhere, including a separate pipeline. You can check out the API docs at [Jobs API | Buildkite Documentation](https://buildkite.com/docs/apis/rest-api/jobs#unblock-a-job).

Otherwise, your build script is free to do anything it likes really. You could start a build on one git branch and during your script, change to another branch to do something and switch back, etc.

Let us know if thats enough info to go off or anything more specific about your use-case that we could help out with
