Git: How to change origin on locally cloned branch -
i have front-end sass framework building on local drive. started project cloning different project on local drive.
now need framework independent copy other master.
the .git/config 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 safely modify framework disconnects original repo?
run following 2 commands , set [new_src] location of new repository:
git remote rm origin git remote add origin [new_src] this change .git/config file , remove reference old repository. of course, don't need set new origin.
if have tracking branches origin, might want untrack with: git branch -d -r origin/<remote branch name>
Comments
Post a Comment