Reputation: 1
I have a front-end Sass framework I am building on my local drive. I started this project by cloning a different project that is also on my local drive.
Now I need this framework to be an independent copy from that other master.
The .git/config
for this framework:
[remote "origin"]
url = S:/grunt-test
fetch = +refs/heads/ruby-sass-susy:refs/remotes/origin/ruby-sass-susy
[branch "master"]
remote = origin
merge = refs/heads/ruby-sass-susy
How do I safely modify this so that this framework completely disconnects from the original repo?
Upvotes: 0
Views: 314
Reputation: 166
Run the following two commands and set [NEW_SRC]
to the location of your new repository:
git remote rm origin
git remote add origin [NEW_SRC]
This will change your .git/config file and remove the reference to the old repository. Of course, you don't need to set a new origin
.
If you have any tracking branches for this origin, you might also want to untrack those with: git branch -d -r origin/<remote branch name>
Upvotes: 1