You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cordova.apache.org by mw...@apache.org on 2013/02/20 01:23:19 UTC

[1/2] git commit: Update README.md with migration steps.

Update README.md with migration steps.


Project: http://git-wip-us.apache.org/repos/asf/cordova-labs/repo
Commit: http://git-wip-us.apache.org/repos/asf/cordova-labs/commit/02f20ead
Tree: http://git-wip-us.apache.org/repos/asf/cordova-labs/tree/02f20ead
Diff: http://git-wip-us.apache.org/repos/asf/cordova-labs/diff/02f20ead

Branch: refs/heads/redirect-docs-cordova-io
Commit: 02f20ead7d04bc915b8027f360c1be188ca50edc
Parents: 68340ce
Author: Michael Brooks <mi...@michaelbrooks.ca>
Authored: Wed Aug 1 09:46:52 2012 -0700
Committer: Michael Brooks <mi...@michaelbrooks.ca>
Committed: Wed Aug 1 09:46:52 2012 -0700

----------------------------------------------------------------------
 README.md |   21 +++++++++++++++++++++
 1 files changed, 21 insertions(+), 0 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cordova-labs/blob/02f20ead/README.md
----------------------------------------------------------------------
diff --git a/README.md b/README.md
index 2d78d3a..55bb7fd 100644
--- a/README.md
+++ b/README.md
@@ -20,3 +20,24 @@ to this practice:
   a new git repository;
 - Working directory is not polluted with the files of other projects.
 - 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>