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_remoteCloning into bare repository 'hello_world_flow_model_remote'...remote: Counting objects: 51, done.remote: Total 51 (delta 0), reused 0 (delta 0), pack-reused 51Unpacking 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 ...