I poured my project on the GitHub repo. Then I had to remove it from there. It was necessary to fill in on BitBucket. But when I upload, Git gives an error:

Push failed app\src\main\java\kz\tem_tour: push to origin/master was rejected Project: failed with error: fatal: repository 'https://github.com/user_login/project.git/' not found 

Maybe there are some files Gitkhabovskie or texts?

What is wrong doing, how to clean?

  • 2
    How do you push? You have origin on github points out. Try git remote remove origin; git remote add origin <bitbucket_url> git remote remove origin; git remote add origin <bitbucket_url> - dzhioev
  • tab VCS> Import Into Version Control> Share Project - DevOma

1 answer 1

This address is listed in your repository configuration. those. in the .git/config file. most likely, something like this:

 ... [remote "origin"] url = https://github.com/user_login/project.git/ ... 

You can manually correct this file by entering the desired value. or you can use the command to specify the url of the repository you created on bitbucket.org :

 $ git remote set-url origin https://bitbucket.org/... 
  • What folder is this file in? I can't find this git config anywhere - DevOma
  • one
    Your project directory should have a .git directory, and a config file in it. - aleksandr barakin
  • @Omuradil but better, until you get comfortable, do not change anything with your hands in the folder. .git . Use git commands, for example the aforementioned git remote set-url . - Nick Volynkin