Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/git/git-reference.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobert Djurasaj <robert.djurasaj@gmail.com>2013-02-08 20:26:32 +0400
committerRobert Djurasaj <robert.djurasaj@gmail.com>2013-02-08 20:26:32 +0400
commit2f8f44fc8955987b605c4940d2315057f3f907fe (patch)
treeb7ee5fbe627b19751733cf12be7f0163e17e318a
parent1c92bc8b35bdb53eba4e5d6754fc3ab8741dac67 (diff)
fix the position of 'git branch -v'
-rw-r--r--branching/index.html30
1 files changed, 15 insertions, 15 deletions
diff --git a/branching/index.html b/branching/index.html
index 0a75034..27fd588 100644
--- a/branching/index.html
+++ b/branching/index.html
@@ -146,6 +146,21 @@ README hello.rb more.txt test.txt
</pre>
<h4>
+ git branch -v
+ <small>see the last commit on each branch</small>
+ </h4>
+
+ <p>If we want to see last commits on each branch
+ we can run <code>git branch -v</code> to see them.</p>
+
+<pre>
+<b>$ git branch -v</b>
+* <span class="green">master</span> 54b417d fix javascript issue
+ development 74c111d modify component.json file
+ testing 62a557a update test scripts
+</pre>
+
+ <h4>
git checkout -b (branchname)
<small>create and immediately switch to a branch</small>
</h4>
@@ -322,21 +337,6 @@ HelloWorld.hello
switch to it so your class renaming changes are isolated. We're going to
change each instance of 'HelloWorld' to 'HiWorld'.</p>
- <h4>
- git branch -v
- <small>see the last commit on each branch</small>
- </h4>
-
- <p>If we want to see last commits on each branch
- we can run <code>git branch -v</code> to see them.</p>
-
-<pre>
-<b>$ git branch -v</b>
-* <span class="green">master</span> 54b417d fix javascript issue
- development 74c111d modify component.json file
- testing 62a557a update test scripts
-</pre>
-
<pre>
<b>$ git checkout -b change_class</b>
Switched to a new branch 'change_class'