# The checkout step mangles branches, messes the history

**URL:** <https://discuss.circleci.com/t/the-checkout-step-mangles-branches-messes-the-history/24975>\
**Category:** Bug Reports\
**Tags:** 2.0, git, circle-yml\
**Created:** [September 8, 2018, 1:46pm UTC](https://discuss.circleci.com/t/the-checkout-step-mangles-branches-messes-the-history/24975 "2018-09-08T13:46:22Z")\
**Posts on this page:** 1\
**Showing post:** 3

<div class="post-metadata">

**Author:** ![pete-woods](https://sea2.discourse-cdn.com/circleci/user_avatar/discuss.circleci.com/pete-woods/32/26081_2.png) [@pete-woods](https://discuss.circleci.com/u/pete-woods)\
**Post date:** [February 5, 2021, 2:05pm UTC](https://discuss.circleci.com/t/the-checkout-step-mangles-branches-messes-the-history/24975/3 "2021-02-05T14:05:22Z")

</div>

Closed on February 5, 2021, 2:05pm UTC

Please see the following post: [Git checkout of a branch destroys local reference to master - #16 by pete-woods](https://discuss.circleci.com/t/git-checkout-of-a-branch-destroys-local-reference-to-master/23781/16)

---

_[View the full topic](https://discuss.circleci.com/t/the-checkout-step-mangles-branches-messes-the-history/24975)._
