# Switch tracking branch in dev install?

**URL:** https://meta.discourse.org/t/switch-tracking-branch-in-dev-install/372785
**Category:** Development
**Tags:** dev-install
**Created:** [July 3, 2025, 2:24pm UTC](https://meta.discourse.org/t/switch-tracking-branch-in-dev-install/372785 "2025-07-03T14:24:05Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![NateDhaliwal](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/natedhaliwal/32/313494_2.png) [@NateDhaliwal](https://meta.discourse.org/u/NateDhaliwal)
#### Post date: [July 3, 2025, 2:24pm UTC](https://meta.discourse.org/t/switch-tracking-branch-in-dev-install/372785/1 "2025-07-03T14:24:05Z")

</div>

Is it possible to switch my branch on my dev install from tests-passed to stable? I couldn’t get

```plaintext
git fetch origin
git checkout stable
git pull

```

to work.

---

<div class="post-metadata">

### Author: ![nat](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/nat/32/235063_2.png) [@nat](https://meta.discourse.org/u/nat)
#### Post date: [July 3, 2025, 2:45pm UTC](https://meta.discourse.org/t/switch-tracking-branch-in-dev-install/372785/2 "2025-07-03T14:45:36Z")

</div>

Hmm what is the output?

After checking out you could try the following if you’re sure you have nothing important in your working directory.

```plaintext
git reset --hard origin/stable

```

---

<div class="post-metadata">

### Author: ![RGJ](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/rgj/32/523185_2.png) [@RGJ](https://meta.discourse.org/u/RGJ)
#### Post date: [July 3, 2025, 3:06pm UTC](https://meta.discourse.org/t/switch-tracking-branch-in-dev-install/372785/3 "2025-07-03T15:06:54Z")

</div>

> [@NateDhaliwal](#):
>
> switch my branch on my dev install from tests-passed to stable?

You would have to reset your database as well, because you can’t migrate that down.

---

<div class="post-metadata">

### Author: ![NateDhaliwal](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/natedhaliwal/32/313494_2.png) [@NateDhaliwal](https://meta.discourse.org/u/NateDhaliwal)
#### Post date: [July 3, 2025, 11:24pm UTC](https://meta.discourse.org/t/switch-tracking-branch-in-dev-install/372785/4 "2025-07-03T23:24:13Z")

</div>

> [@nat](#):
>
> Hmm what is the output?

No errors, actually. The actual problem comes when running `bin/rails db:migrate`.

> [@RGJ](#):
>
> You would have to reset your database as well, because you can’t migrate that down.

That’s probably it. Thanks!

---

<div class="post-metadata">

### Author: ![system](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/system/32/443519_2.png) [@system](https://meta.discourse.org/u/system)
#### Post date: [August 2, 2025, 11:24pm UTC](https://meta.discourse.org/t/switch-tracking-branch-in-dev-install/372785/5 "2025-08-02T23:24:41Z")

</div>

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
