I tried out In git, is there a simple way of introducing an unrelated branch to a repository? but could not find any correct solution.
What I exactly want is to create a new branch, say v2
. The branch v2
will have the contents of the master
branch but should be independent of the master
. Also the v2
branch should be in a separate directory.
My current local directory is :
|light-mvc
| --master // contains the master branch
| --v2 // should contain the v2 branch
and my remote repo is https://github.com/YashKumarVerma/Light-PHP-MVC (if it matters)