Search code examples
gitclonegit-clone

Making cloned repository in git the master


I have two git repositories:

  1. report.git (Master on remote location)
  2. cloned.git (Local)

I lost report.git. I have the cloned.git. I want to clone other repositories from this cloned.git. This is possible but my question is am I missing something? Is cloned.git really the same as the master report.git?

cloned.git still points to the Master report.git. I changed this by removing the options in the .git/config. Is this enough?


Solution

  • Your cloned.git repository is a clone (copy) of report.git in the state that report.git was when you cloned or last pulled from report.git

    Your cloned.git has always been a master, report.git has always been a master as well. It's the beauty of git.