Search code examples
gitgit-push

Git Bash: remote error: You can't push to git://github.com/


Please, help me, how can I fix this error ?

$git push origin dev
fatal: remote error:
 You can't push to git://github.com//name_of_repo.git
 Use https:://github.com//name_of_repo.git

Solution

  • Use an HTTPS or SSH URL. Instead of git://github.com/user/repo.git use one of these:

    • https://github.com/user/repo.git
    • git@github.com:user/repo.git

    You can change it in your clone like this:

    git remote set-url origin <THE-URL-HERE>