December 2016
Beginner
480 pages
12h 34m
English
In this lab, you'll work through some simple branch merging.
This lab assumes that you have done Connected Lab 5: Working with Branches. You should start out in the same directory as that lab.
$ git status$ echo "Initial content" > file5.c$ git add .
$ git commit -m "adding new file on master"$ gitk &$ git branch newbranch$ echo "Update on master" > file5.c$ git add .
$ git commit -m "update on master"$ git checkout newbranch$ echo "Update on newbranch" > file5.c$ git commit -am "update on newbranch"$ git checkout masterRead now
Unlock full access