Skip to content

Commit

Permalink
Update README.md with migration steps.
Browse files Browse the repository at this point in the history
  • Loading branch information
mwbrooks committed Aug 1, 2012
1 parent 68340ce commit 02f20ea
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions README.md
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -20,3 +20,24 @@ to this practice:
a new git repository; a new git repository;
- Working directory is not polluted with the files of other projects. - Working directory is not polluted with the files of other projects.
- Projects will not step on each others toes. - Projects will not step on each others toes.

## Moving Out of Labs

Someday, your labs project may have it's own repository. You can easily move
all of your Git history to your new repository:

# cd to labs and checkout your project's branch
cd incubator-cordova-labs
git checkout my-branch

# add your new repository as a remote
git add remote my-remote <url>

# currently, my-remote is empty (has no commits)

# push my-branch to my-remote's master branch
git push my-remote my-branch:master

# now clone your new project (my-remote)
cd ..
git clone <url>

0 comments on commit 02f20ea

Please sign in to comment.