Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 3997666
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 20, 20262026-05-20T07:25:47+00:00 2026-05-20T07:25:47+00:00

I have a Rails app deployed on Heroku and I have a git repo

  • 0

I have a Rails app deployed on Heroku and I have a git repo that I’m currently working on with uncommitted code changes. In the meantime, I need to make changes to the source on Heroku independently of the local repo. Can I do the following:

  1. Clone the Heroku git repo on the same development machine with a different app name though with the same account
  2. Make changes to the new local repo
  3. Commit those changes to the new local repo
  4. Push those changes to the Heroku repo
  5. Resume working on my original local repo

Will this approach work?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-20T07:25:48+00:00Added an answer on May 20, 2026 at 7:25 am

    Yep, that workflow would work, or stash them – and don’t forget if you do make a clone of the heroku repo you’ll have made changes to a different clone of the repo and you’ll need to make those changes in your original local repo.

    In future I’d suggest that you assume that your ‘master’ branch is what’s live on Heroku and branch of that to work in – you can even push this branch into a new app for testing purposes. This way bug fixes can be performed on your local master branch (or another branch and merged into master) and pushed to heroku and then when you’ve finished your new work you merge the branch back into master and deploy that to your live environment. I wrote a blog article on the subject a while back, here

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a Rails app deployed on Heroku with the Heroku scheduler add-on successfully
I have a Ruby on Rails app that I've recently deployed to a remote
I have a Rails app running Mongoid on Heroku and I need to set
I have deployed a rails 3.1 app to Heroku Cedar stack, and am trying
I deployed a Ruby on Rails app to Heroku, and I realized they have
I have a working rails app that uses imagemagick commands on my local mac
I have an existing Rails app on GitHub and deployed on Heroku. I'm trying
I have a Rails app deployed to Heroku, I can reach it from the
I have an existing Rails 3.1rc4 app deployed to heroku on the Bamboo stack.
Hey. So I have a Rails app that's getting deployed to a production machine

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.