# Using commit\_version\_bump fastlane action

**URL:** <https://discuss.bitrise.io/t/using-commit-version-bump-fastlane-action/3907>\
**Category:** Issues\
**Tags:** fastlane\
**Created:** [January 26, 2018, 4:24am UTC](https://discuss.bitrise.io/t/using-commit-version-bump-fastlane-action/3907 "2018-01-26T04:24:40Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![lganderson](https://avatars.discourse-cdn.com/v4/letter/l/b5e925/32.png) [@lganderson](https://discuss.bitrise.io/u/lganderson)\
**Post date:** [January 26, 2018, 4:24am UTC](https://discuss.bitrise.io/t/using-commit-version-bump-fastlane-action/3907/1 "2018-01-26T04:24:40Z")

</div>

Currently, in my fastlane lane that I’m triggering through Bitrise I have the action commit\_version\_bump. Viewing the logs everything works correctly, but nothing is committed to the repository.

I’m assuming it’s because the git clone is in a ‘detached head’ state.

Wondering how this is handled in other places where you want to commit back to the branch that was checked out during the workflow.

fastlane action docs: [https://docs.fastlane.tools/actions/commit\_version\_bump/#commit\_version\_bump](https://docs.fastlane.tools/actions/commit_version_bump/#commit_version_bump)

---

<div class="post-metadata">

**Author:** ![viktorbenei](https://sea2.discourse-cdn.com/flex016/user_avatar/discuss.bitrise.io/viktorbenei/32/18_2.png) [@viktorbenei](https://discuss.bitrise.io/u/viktorbenei)\
**Post date:** [January 26, 2018, 1:18pm UTC](https://discuss.bitrise.io/t/using-commit-version-bump-fastlane-action/3907/2 "2018-01-26T13:18:50Z")

</div>

Hi @lganderson,

> [@lganderson](#):
>
> I’m assuming it’s because the git clone is in a ‘detached head’ state.

Indeed that’s most likely why it happens.

> [@lganderson](#):
>
> Wondering how this is handled in other places where you want to commit back to the branch that was checked out during the workflow.

In general our advise is to **not to push back from CI** into the repository. For more details about why, and if you really really need it how you can still push back please see: [Intermittent build failures to execute push\_to\_git\_remote & how to manage build number - #2 by viktorbenei](http://discuss.bitrise.io/t/intermittent-build-failures-to-execute-push-to-git-remote-how-to-manage-build-number/382/2)

If you’d have any questions just let us know! 🙂
