Skip to content

Pair up dangling paragraph tags; Make sure all text at least in P #54

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Dec 25, 2012
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions branching/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,7 @@ <h4>

<p>So let's start by creating a new branch and switching to it. You can do
that by running <code>git branch (branchname)</code>.
</p>

<pre>
$ git branch testing
Expand Down Expand Up @@ -306,7 +307,7 @@ <h4>
revert to what it was before I switched branches. Here I can change
something different (in this case the printed output) and at the same
time rename the file from <code>hello.rb</code> to <code>ruby.rb</code>.
</b>
</p>

<pre>
<b>$ git checkout master</b>
Expand Down Expand Up @@ -372,7 +373,7 @@ <h4>
of code is edited in different branches there is no way for a computer
to figure it out, so it's up to us. Let's see another example of changing
the same line in two branches.
<p>
</p>

<pre>
<b>$ git branch</b>
Expand Down Expand Up @@ -504,6 +505,7 @@ <h2>
<code>git log</code> when you are in that branch. For example, if we run
<code>git log</code> in the Hello World project that we have been working
on in this section, we'll see all the commit messages that we've done.
</p>

<pre>
<b>$ git log</b>
Expand Down
13 changes: 9 additions & 4 deletions creating/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ <h2>Getting and Creating Projects</h2>
public Git repository, as you would do if you wanted a copy or wanted to
work with someone on a project. We will cover both of these here.
</p>

</div>
</div>

Expand All @@ -31,37 +32,41 @@ <h2>
</h2>

<div class="block">
To create a repository from an existing directory of files, you can
<p>To create a repository from an existing directory of files, you can
simply run <code>git init</code> in that directory. For example,
let's say we have a directory with a few files in it, like this:
</p>

<pre>
<b>$ cd konichiwa</b>
<b>$ ls</b>
README hello.rb
</pre>

This is a project where we are writing examples of the "Hello World"
<p>This is a project where we are writing examples of the "Hello World"
program in every language. So far, we just have Ruby, but hey, it's
a start. To start version controlling this with Git, we can simply
run <code>git init</code>.
</p>

<pre>
<b>$ git init</b>
Initialized empty Git repository in /opt/konichiwa/.git/
</pre>

Now you can see that there is a <code>.git</code> subdirectory in your
<p>Now you can see that there is a <code>.git</code> subdirectory in your
project. This is your Git repository where all the data of your
project snapshots are stored.
</p>

<pre>
<b>$ ls -a</b>
. .. .git README hello.rb
</pre>

Congratulations, you now have a skeleton Git repository and can start
<p>Congratulations, you now have a skeleton Git repository and can start
snapshotting your project.
</p>

<p class="nutshell">
<strong>In a nutshell</strong>, you use <code>git init</code> to make an
Expand Down
3 changes: 2 additions & 1 deletion inspect/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -417,7 +417,8 @@ <h2>

<p>That's what we're looking for, but we don't want to have to figure out
what commit the two branches diverged from every time. Luckily, Git has a
shortcut for this. If you run <code>git diff master...erlang</code> (with three dots in between the branch names), Git will automatically figure out
shortcut for this. If you run <code>git diff master...erlang</code> (with
three dots in between the branch names), Git will automatically figure out
what the common commit (otherwise known as the "merge base") of the two
commit is and do the diff off of that.</p>

Expand Down
4 changes: 3 additions & 1 deletion remotes/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -315,6 +315,7 @@ <h2>
<p>If you have more than one remote repository, you can either fetch from specific
ones by running <code>git fetch [alias]</code> or you can tell Git to synchronize
with all of your remotes by running <code>git fetch --all</code>.
</p>

<p class="nutshell">
<b>In a nutshell</b> you run <code>git fetch [alias]</code> to synchronize your
Expand Down Expand Up @@ -358,7 +359,7 @@ <h2>
what I have committed and all of its history.</p>

<p>What if I have a topic branch like the 'erlang' branch we created earlier
and I just want to share that? You can just push that branch instead.
and I just want to share that? You can just push that branch instead.</p>

<pre>
<b>$ git push github erlang</b>
Expand Down Expand Up @@ -403,6 +404,7 @@ <h2>

<p>You can fix this by running <code>git fetch github; git merge github/master</code>
and then pushing again.
</p>

<p class="nutshell">
<b>In a nutshell</b> you run <code>git push [alias] [branch]</code> to update a
Expand Down
3 changes: 2 additions & 1 deletion zh/branching/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,7 @@ <h4>
</h4>

<p>我们动手创建一个分支,并切换过去。执行 <code>git branch (branchname)</code> 即可。
</p>

<pre>
$ git branch testing
Expand Down Expand Up @@ -334,7 +335,7 @@ <h4>
<p>那么,Git 合并很有魔力,我们再也不用处理合并冲突了,对吗?不太确切。
不同分支中修改了相同区块的代码,电脑自己猜不透神马的情况下,冲突就摆在我们面前了。
我们看看两个分支中改了同一行代码的例子。
<p>
</p>

<pre>
<b>$ git branch</b>
Expand Down
6 changes: 4 additions & 2 deletions zh/creating/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,8 @@ <h2>
</h2>

<div class="block">
在目录中执行 <code>git init</code>,就可以创建一个 Git 仓库了。比如,我们恰好有个目录,里头有些许文件,如下:
<p>在目录中执行 <code>git init</code>,就可以创建一个 Git 仓库了。比如,我们恰好有个目录,里头有些许文件,如下:
</p>
<pre>
<b>$ cd konichiwa</b>
<b>$ ls</b>
Expand All @@ -54,7 +55,8 @@ <h2>
. .. .git README hello.rb
</pre>

恭喜,现在你就有了一个 Git 仓库的架子,可以开始快照你的项目了。
<p>恭喜,现在你就有了一个 Git 仓库的架子,可以开始快照你的项目了。
</p>

<p class="nutshell">
<strong>简而言之</strong>,用 <code>git init</code> 来在目录中创建新的 Git 仓库。
Expand Down
2 changes: 1 addition & 1 deletion zh/inspect/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -437,7 +437,7 @@ <h2>
2 files changed, 9 insertions(+), 0 deletions(-)
</pre>

<p>当然,我会推荐简单点的那个。</>
<p>当然,我会推荐简单点的那个。</p>


<p class="nutshell">
Expand Down