Skip to main content
1 of 2
Thomas Owens
  • 85.9k
  • 18
  • 211
  • 311

Although the question is different, much of my answer about what to do with abandoned branches applies to this as well.

You say that maybe you will need the changes later. Are sure are you that you'll need them? How much later? Assuming that the work will be relevant later, how do you know that the way you did the work will be relevant later?

Personally, I would discard the work. You gained knowledge and experience by doing it once. If and when it comes up again, you'll be able to reevaluate the requirements and build upon your experience to develop a solution.

If you do decide to keep it, then I would commit to a branch, push that up to a remote, and set an expiration date after which you'd delete the branch because the rest of the system has continued to evolve and it no longer serves as a reliable reference for a potential solution to a problem.

Thomas Owens
  • 85.9k
  • 18
  • 211
  • 311