Getting ready

First, we'll set up two repositories and use one of them as a remote for the other. We will use the Git-Version-Control-Second-Edition_hello_world_flow_model repository, but first we'll clone a repository to a local bare repository:

$ git clone --bare https://github.com/PacktPublishing/Git-Version-Control-Cookbook-Second-Edition_hello_world_flow_model.git hello_world_flow_model_remote
Cloning into bare repository 'hello_world_flow_model_remote'...
remote: Counting objects: 51, done.
remote: Total 51 (delta 0), reused 0 (delta 0), pack-reused 51
Unpacking objects: 100% (51/51), done.

Next, we'll clone the newly cloned repository to a local one with a working directory:

$ git clone hello_world_flow_model_remote hello_world_flow_model 

Now, let's delete a couple of merged feature branches in the bare repository:

$ cd hello_world_flow_model_remote 
$ git branch -D feature/continents  
$ git branch -D feature/printing  
$ git branch -D release/1.0  
$ cd .. 

Finally, change the directory to your working copy and make sure develop branch is checked out:

$ cd hello_world_flow_model 
$ git checkout develop 
$ git reset --hard origin/develop
..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
18.117.137.64