Shopify Theme pull wrong version

Topic summary

  • Problem: After running ‘shopify theme pull’ on a Dawn theme and pushing to GitHub, the repository reverted to the original theme version, wiping recent work (notably >200 lines removed from base.css).

  • Attempts: Manually rolled back files in Shopify’s code editor; base.css couldn’t be restored because no recent changes were recorded there. Tried reverting via a specific commit ID, but it didn’t work.

  • Ask: Looking for a way to revert/restore changes via GitHub or Shopify after the unintended reversion.

  • Suggestion: Another participant recommended using GitHub Desktop’s ‘Reset to latest commit’ to retrieve the latest code (screenshot provided).

  • Status: OP had already tried that reset immediately after the push; it did not restore the changes. No confirmed recovery path yet; the thread remains unresolved with open questions on recovering overwritten theme files.

  • Notes: ‘shopify theme pull’ fetches theme files from the store to local. ‘Reset to latest commit’ is a Git action to sync the working directory to a chosen commit.

Summarized with AI on January 19. AI used: gpt-5.

Hi,

I’m currently using a dawn theme.

I was trying to make a commit to my GitHub page.

I did Shopify theme pull and theme pulled successfully.

I pushed to my GitHub and now it went back to the original theme version where I first started to build.

I tried reverting back all the codes individually by going in to edit code and rolled back to before the push.

However, I still have lost +200 lines in base.css (base.css had no recent changes so I wasn’t able to roll back)

Any help?

FYI, were in middle of something and did not commit before push.. so I try to revert from the commit id but I wasn’t able to make it happen.

any way to revert through GitHub or Shopify?

Hi
You can try “Reset to latest commit” getting your latest code to pull the latest code.

I already tried this right after the push but it did not go back unfortunately…

but thanks for the answer