From 31bc329ddc12e833180372d31c57a0f6a3ee6b8e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Alexander=20K=C3=B6plinger?= Date: Wed, 25 Mar 2015 15:28:24 +0100 Subject: Fix a typo and code indentation in readme.md --- README.md | 36 ++++++++++++++++++------------------ 1 file changed, 18 insertions(+), 18 deletions(-) (limited to 'README.md') diff --git a/README.md b/README.md index 3bbe9b4e176..d78b859e46b 100644 --- a/README.md +++ b/README.md @@ -9,7 +9,7 @@ standards for C# and the Common Language Runtime. 4. [Contributing to Mono](#contributing-to-mono) 5. [Reporting bugs](#reporting-bugs) 6. [Configuration Options](#configuration-options) -7. [Working with Submodles](#working-with-submodules) +7. [Working with Submodules](#working-with-submodules) **Build Status** @@ -467,39 +467,39 @@ This section describes how to use it. An initial clone should be done recursively so all submodules will also be cloned in a single pass: - $ git clone --recursive git@github.com:mono/mono + $ git clone --recursive git@github.com:mono/mono Once cloned, submodules can be updated to pull down the latest changes. This can also be done after an initial non-recursive clone: - $ git submodule update --init --recursive + $ git submodule update --init --recursive To pull external changes into a submodule: - $ cd - $ git pull origin - $ cd - $ git add - $ git commit + $ cd + $ git pull origin + $ cd + $ git add + $ git commit By default, submodules are detached because they point to a specific commit. Use `git checkout` to move back to a branch before making changes: - $ cd - $ git checkout - # work as normal; the submodule is a normal repo - $ git commit/push new changes to the repo (submodule) + $ cd + $ git checkout + # work as normal; the submodule is a normal repo + $ git commit/push new changes to the repo (submodule) - $ cd - $ git add # this will record the new commits to xamcore - $ git commit + $ cd + $ git add # this will record the new commits to xamcore + $ git commit To switch the repo of a submodule (this should not be a common or normal thing to do at all), first edit `.gitmodules` to point to the new location, then: - $ git submodule sync -- - $ git submodule update --recursive - $ git checkout + $ git submodule sync -- + $ git submodule update --recursive + $ git checkout The desired output diff is a change in `.gitmodules` to reflect the change in the remote URL, and a change in / where you see -- cgit v1.2.3