# Stash vs reset during upgrades?

**URL:** https://meta.discourse.org/t/stash-vs-reset-during-upgrades/16979
**Category:** Feature
**Created:** [June 29, 2014, 5:38am UTC](https://meta.discourse.org/t/stash-vs-reset-during-upgrades/16979 "2014-06-29T05:38:48Z")
**Posts on this page:** 6
**Page:** 1

<div class="post-metadata">

### Author: ![watchmanmonitor](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/watchmanmonitor/32/430970_2.png) [@watchmanmonitor](https://meta.discourse.org/u/watchmanmonitor)
#### Post date: [June 29, 2014, 5:38am UTC](https://meta.discourse.org/t/stash-vs-reset-during-upgrades/16979/1 "2014-06-29T05:38:48Z")

</div>

I have a number of customizations to our `config/locales/server.en.yml` in our discourse.

During an upgrade we start out with:

`cd /var/www/discourse && git fetch && git reset --hard HEAD@{upstream}`

One day Im going to forget this, potentially losing my changes (Yes I make backups, but that’s a different story)

Would stashing any changes before resetting the repo make sense?

---

<div class="post-metadata">

### Author: ![sam](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/sam/32/102149_2.png) [@sam](https://meta.discourse.org/u/sam)
#### Post date: [June 29, 2014, 7:03am UTC](https://meta.discourse.org/t/stash-vs-reset-during-upgrades/16979/2 "2014-06-29T07:03:04Z")

</div>

What makes sense here is a plugin to override the strings

---

<div class="post-metadata">

### Author: ![codinghorror](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/codinghorror/32/110067_2.png) [@codinghorror](https://meta.discourse.org/u/codinghorror)
#### Post date: [June 29, 2014, 7:58am UTC](https://meta.discourse.org/t/stash-vs-reset-during-upgrades/16979/3 "2014-06-29T07:58:02Z")

</div>

A string override plugin would be a good idea, that has been requested before.

---

<div class="post-metadata">

### Author: ![sam](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/sam/32/102149_2.png) [@sam](https://meta.discourse.org/u/sam)
#### Post date: [June 29, 2014, 7:59am UTC](https://meta.discourse.org/t/stash-vs-reset-during-upgrades/16979/4 "2014-06-29T07:59:17Z")

</div>

Should be very simple to do, will have a look next week.

---

<div class="post-metadata">

### Author: ![codinghorror](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/codinghorror/32/110067_2.png) [@codinghorror](https://meta.discourse.org/u/codinghorror)
#### Post date: [June 29, 2014, 8:00am UTC](https://meta.discourse.org/t/stash-vs-reset-during-upgrades/16979/5 "2014-06-29T08:00:38Z")

</div>

That should be a post V1 or community thing, it is not high priority.

---

<div class="post-metadata">

### Author: ![chapoi](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/chapoi/32/537252_2.png) [@chapoi](https://meta.discourse.org/u/chapoi)
#### Post date: [December 4, 2025, 11:31am UTC](https://meta.discourse.org/t/stash-vs-reset-during-upgrades/16979/6 "2025-12-04T11:31:04Z")

</div>


