I have a project cloned from github, and I want to disconnect its relationship with the current repository and push in into a new one (not a new branch but a whole new repo). Is it possible?
            Asked
            
        
        
            Active
            
        
            Viewed 32 times
        
    3 Answers
0
            
            
        You just need to change remote url.
git config --edit
Default editor will be opened with the current repos config. You can see remote URL in it like below
url=git@github.com:{user_name}/{old_repo}.git
replace this with git@github.com:{user_name}/{new_repo}.git (if you are using vi editor enter i for insert and :wq for write and quit the editor)
Finally,
git push origin
Hope it works !
 
    
    
        Suryavel TR
        
- 3,576
- 1
- 22
- 25
 
     
     
     
    