@git / git-reference / commits / 2f8f44f

fix the position of 'git branch -v'

Robert Djurasaj committed Feb 8, 2013 at 09:26 UTC 2f8f44fc8955987b605c4940d2315057f3f907fe
1 file changed +15 -15
branching/index.html
+15 -15
@@ -145,6 +145,21 @@ Switched to branch 'master'
145 README hello.rb more.txt test.txt
146 </pre>
147
148 + <h4>
149 + git branch -v
150 + <small>see the last commit on each branch</small>
151 + </h4>
152 +
153 + <p>If we want to see last commits on each branch
154 + we can run <code>git branch -v</code> to see them.</p>
155 +
156 +<pre>
157 +<b>$ git branch -v</b>
158 +* <span class="green">master</span> 54b417d fix javascript issue
159 + development 74c111d modify component.json file
160 + testing 62a557a update test scripts
161 +</pre>
162 +
163 <h4>
164 git checkout -b (branchname)
165 <small>create and immediately switch to a branch</small>
@@ -322,21 +337,6 @@ HelloWorld.hello
337 switch to it so your class renaming changes are isolated. We're going to
338 change each instance of 'HelloWorld' to 'HiWorld'.</p>
339
325 - <h4>
326 - git branch -v
327 - <small>see the last commit on each branch</small>
328 - </h4>
329 -
330 - <p>If we want to see last commits on each branch
331 - we can run <code>git branch -v</code> to see them.</p>
332 -
333 -<pre>
334 -<b>$ git branch -v</b>
335 -* <span class="green">master</span> 54b417d fix javascript issue
336 - development 74c111d modify component.json file
337 - testing 62a557a update test scripts
338 -</pre>
339 -
340 <pre>
341 <b>$ git checkout -b change_class</b>
342 Switched to a new branch 'change_class'