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 9058045
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 16, 20262026-06-16T14:37:18+00:00 2026-06-16T14:37:18+00:00

Until now I used svn as source control. At this time I have started

  • 0

Until now I used svn as source control. At this time I have started a new project and it is stored on gitHub.

Issue is that Heroku and GitHub, both use git. First one to publish app and second one for version control.

My app schema is:

base-dir                                    <--github base
    some-text-files (Readme, ... )
    django-project-dir                      <--heroku base
        manage.py
        main-app-dir
           settings.py
        other-app-dirs
           views.py
           models.py

When I push to gitHub base-dir and all subfolders are pushed.

To Heroku only django-project-dir should be pushed.

Notice: I have tried to create a new git repository at django-project-dir level but git take it as a submodule and excluded from gitHub.

Because this is a new project I can easily change to another schema dirs.

My question:

What is the easy way to coexist both Heroku and GitHub git configurations?

  • 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-06-16T14:37:19+00:00Added an answer on June 16, 2026 at 2:37 pm

    Your best bet is to move you readme and other files to your project root. Then just add GitHub as a separate remote (when you’re in your project directory).

    git remote add origin https://github.com/USERNAME/REPO
    

    Then you can push to GitHub with git push origin master. You will have to do a forced push (the -f option) the first time assuming you’re pushing what used to be the repo you used exclusively for Heroku.

    You’ll still be able to push to Heroku with git push heroku master.

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

Sidebar

Related Questions

I'm a ClearCase newbie and up until now have been used to SVN. Therefore,
This code actually used to work until now. I have no idea what is
Up until now I have used the django template system to perform this kind
Until now I've always used the ASP.NET MVC framework source for debugging ASP.NET MVC.
I've been very happily using PredicateBuilder but until now have only used it for
I have a file that I store some site links. Until now I used:
Until now i have used Graphviz to programmatically create diagrams and graphs. Recently, I
Until now, I have used Web Deployment Projects within Visual Studio for precompiling my
How to rename the columns' headers of datagridview dynamically? until now I used this
Hi i did't used any version control system until now so basically i am

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.