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

  • Home
  • SEARCH
  • 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 532371
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 13, 20262026-05-13T09:23:51+00:00 2026-05-13T09:23:51+00:00

I have a project, the source of which I’m managing with Git. It’s a

  • 0

I have a project, the source of which I’m managing with Git. It’s a big project–relative to my experience–and I feel like I will completely re-write at some point after its completion. Though this is a problem I won’t encounter for a long time, I’m curious: how would I manage a complete re-write with Git?

Would it be best to make a completely new repo to manage the code? Or perhaps branch my WC and re-build inside there? Though it probably depends on specifics (e.g. how much code will be re-written, will I want to be able to reference old files or lines of code), what would be the best way to handle this? For generality’s sake, let’s answer those two questions: Imagine a complete re-write, but with lessons learned from the 1.0 build, if you will.

I hope that makes sense. Let me know if you need more clarification. Thanks.

  • 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-13T09:23:52+00:00Added an answer on May 13, 2026 at 9:23 am

    This depends on how you are planning to do the rewrite. It you really are throwing everything away and rewriting completely from scratch, then perhaps starting a new Git repo would be a good idea. But I wouldn’t recommend that; there’s probably a lot of good knowledge (tests, documentation, bug fixes for odd corner cases that most people don’t think of at first, and so on; as you say, lessons learned from 1.0) embedded in the old implementation that you want to retain in the new one.

    So I would recommend working in a branch, or cloning the repo and working in the clone. It may even be a good idea to try doing the rewrite as a large scale refactoring, rather than a rewrite from scratch. Try to keep as much code working as you can in the process of rewriting it, never going too long with anything broken or major functionality stripped out. You’d be surprised how working from the old code base and just doing a large scale refactoring, where you’re careful not to break stuff that’s working, can be more efficient than a ground-up rewrite. A ground up rewrite frequently gets you something that seems to do 90% (using standard, pulled out of thin air statistics of 90/10) of what the old one did very quickly, and much more clean/fast/new/shiny/whatver, but then you discover that that last 10% is critical and actually a lot harder than you thought, and you realize that bugs that you fixed long ago in the old system have cropped up again in the new one.

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

Sidebar

Related Questions

I have a project which is source controlled using Subversion and VisualSVN. Since the
I have some local changes to an open source project which uses Subversion as
I have a table representing values of source file metrics across project revisions, like
I have an open source project which I had been actively developing JStock -
I have recently started working on some open source project which I found relevant
For an open source project I have I am writing an abstraction layer on
I have a VB6 project in Visual Source Safe 6.0. When I open the
In order to improve my open source project, I need testers. I have created
I have a VS 2008 project under TortoiseSVN source control. I am the only
I have a home project that really needs to be in Source Control. I

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.