Getting ready

We'll use the Git-Version-Control-Cookbook-Second-Edition_hello_world_flow_model repository again for this example:

$ git clone https://github.com/PacktPublishing/Git-Version-Control-Cookbook-Second-Edition_hello_world_flow_model.git 
Cloning into 'Git-Version-Control-Cookbook-Second-Edition_hello_world_flow_model'... 
remote: Reusing existing pack: 51, done. 
remote: Total 51 (delta 0), reused 0 (delta 0) 
Unpacking objects: 100% (51/51), done. 
Checking connectivity... done. 
$ cd Git-Version-Control-Cookbook-Second-Edition_hello_world_flow_model 
$ git checkout develop 
Already on 'develop' 
Your branch is up-to-date with 'origin/develop'. 
$ git reset --hard origin/develop 
HEAD is now at 2269dcf Merge branch 'release/1.0' into develop ...

Get Git Version Control Cookbook now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.