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/08/08 23:25:46 UTC

git commit: Update README.md with migration steps.

Updated Branches:
  refs/heads/master 8b8d4f6c5 -> 7a089f42e


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/7a089f42
Tree: http://git-wip-us.apache.org/repos/asf/cordova-labs/tree/7a089f42
Diff: http://git-wip-us.apache.org/repos/asf/cordova-labs/diff/7a089f42

Branch: refs/heads/master
Commit: 7a089f42e8ffc143aa4c20b3b9999e4a054065b2
Parents: 8b8d4f6
Author: Michael Brooks <mi...@michaelbrooks.ca>
Authored: Wed Aug 1 09:46:52 2012 -0700
Committer: Michael Brooks <mi...@michaelbrooks.ca>
Committed: Thu Aug 8 14:22:03 2013 -0700

----------------------------------------------------------------------
 README.md | 24 ++++++++++++++++++++++--
 1 file changed, 22 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cordova-labs/blob/7a089f42/README.md
----------------------------------------------------------------------
diff --git a/README.md b/README.md
index a994618..72c6336 100644
--- a/README.md
+++ b/README.md
@@ -1,4 +1,4 @@
-# Cordova Laboratory
+# Cordova Labs
 
 > Caution: Safety Goggles are Recommended!
 
@@ -19,4 +19,24 @@ to this practice:
 - Each project has an isolate git history, which allows for easy migration to
   a new git repository;
 - Working directory is not polluted with the files of other projects.
-- Projects will not step on each others toes.
\ No newline at end of file
+- Projects will not step on each others toes.
+
+## Migrating Repositories
+
+One day, you labs project may grow up and need it's own repository.
+You can easily move all of your Git history to your new repository with the
+following steps:
+
+    # cd to labs and checkout your project's branch
+    git checkout my-branch
+
+    # add your new repository as a remote
+    git add remote my-remote <url>
+
+    # currently, my-remote should be empty (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)
+    git clone <url>