Y
Y
yellow_pus2022-04-19 00:41:07
git
yellow_pus, 2022-04-19 00:41:07

How to disable "association" with a project in github/bitbucket?

I cloned the project from bitbucket to myself, that is, now I can perform any actions with this repository through the console. But let's say I changed the project, moved to another folder, but I already want to work with a completely different repository, but ide (phpstorm) does not understand this. How can I break this connection with the repository (as far as I understand, it is possible both through PHPstorm itself and through the console)?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
Sergey Kuznetsov, 2022-04-19
@yellow_pus

Disconnect the link between local and external branch. This connection is different for each branch.
git branch --unset-upstream [локальная_ветка]
Delete the alias of the address of the external repository from which we cloned
git remote remove origin
Well, either through the Git menu - Manage Remotes ...
625df2f6011dd404569686.png
In principle, the last command is enough.
If origin is deleted, then all links between branches that mention origin are also cleared.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question