0

I created second repo for my project on github,
first locates on another resource
I pushed my code on github,
after this I realized my mistake and deleted this repo by hands, but it`s still visible in my IDE
I tried to delete github/mybranch from my IDE but got answer

"Failed to delete remote branch github/mybranch repository https://github.com/myaccount/myproject.git/" not found"

Answers from here didnot help me

Kirguduck
  • 748
  • 1
  • 9
  • 20

2 Answers2

0

Check VCS -> Git -> Remotes, there you can edit / delete your github link to your repository or add a new link to a new one

Jeavie
  • 212
  • 4
  • 16
0

Running git remote -v will usually show something like:

origin  git@github.com:myaccount/myproject.git (fetch)
origin  git@github.com:myaccount/myproject.git (push)

If it is empty, you can simply add back your remote with:

git remote origin git@github.com:myaccount/myproject.git

Your IDE will have similar options somewhere to add remotes.

Cheesebaron
  • 24,131
  • 15
  • 66
  • 118