diff --git a/branching/index.html b/branching/index.html index 0a75034..27fd588 100644 --- a/branching/index.html +++ b/branching/index.html @@ -145,6 +145,21 @@ Switched to branch 'master' README hello.rb more.txt test.txt +

+ git branch -v + see the last commit on each branch +

+ +

If we want to see last commits on each branch + we can run git branch -v to see them.

+ +
+$ git branch -v
+* master      54b417d fix javascript issue
+  development 74c111d modify component.json file
+  testing     62a557a update test scripts
+
+

git checkout -b (branchname) create and immediately switch to a branch @@ -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'.

-

- git branch -v - see the last commit on each branch -

- -

If we want to see last commits on each branch - we can run git branch -v to see them.

- -
-$ git branch -v
-* master      54b417d fix javascript issue
-  development 74c111d modify component.json file
-  testing     62a557a update test scripts
-
-
 $ git checkout -b change_class
 Switched to a new branch 'change_class'