How to fork a repository?

Asked by rod boggess

Our company has an ad-hoc central set of code that has (lots and lots) of custom changes for each project. The company doesn't have VCS. Instead, they copy the source code of a project that was similar and start there. For personal use, I can just create a repository for each project I work on and then abandon it. Only, I have a project I just finished and I want to fork it to start on the next project. I want to create a stand-alone repository with no history or link to the previous repository from whence it came. Can someone give me a set of commands that will do this?

If I do eventually get assistance with another member, and they decide to use my project repository, I don't want them to be able to accidentally commit the changes in this project to the original project from which I branched, and I'd just as soon they not be able to see any history of changes from that original branch, either.

I'm thinking about bzr init-repo, bzr init NewProject, copy files to NewProject directory, delete all .bzr subdirectories, then do a bzr add. Sound about right?

Question information

Language:
English Edit question
Status:
Solved
For:
Bazaar Edit question
Assignee:
No assignee Edit question
Solved by:
rod boggess
Solved:
Last query:
Last reply:
Revision history for this message
rod boggess (rboggess) said :
#1

The true test of the pudding is in the tasting. My guess was correct, if anyone else is looking to do the obvious, try the obvious choice. It's so pleasant when something just works the way you guess.

Revision history for this message
Jelmer Vernooij (jelmer) said :
#2

Looks like you beat us to it by answering your own question. :-) Don't hesitate to ask if you have more questions.