简体   繁体   中英

How to delete/change the remote origin master branch

I have a movile project repo in bitbucket and I cloned that repo into a eclipse project the remote branch master/origin point too that repo this is ok, but I created another empty repo in bitbucket and I want to push my project in that empty repo.

My problem is that when I do git remote -v it shows the name of the branches of the repo from were I cloned the project, I want to remove those branches and change them to use the branches of the new empty repo that I created

您可以将仓库的remote位置更改为指向其他URL:

git remote set-url origin git@bitbucket.org:<your_id>/<new_repo.git>

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM