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
If you get a failed to push some refs to error, the main thing to do is git pull to bring your local repo up to date with the remote.
Under Account settings, click on the Developer settings tab. Select Personal access tokens from the left tab. Select the Scope of access you want the token to have to your GitHub account. REMEMBER to copy your personal access token someplace SAFE!
Use an HTTPS or SSH URL. Instead of git://github.com/user/repo.git
use one of these:
https://github.com/user/repo.git
[email protected]:user/repo.git
You can change it in your clone like this:
git remote set-url origin <THE-URL-HERE>
I had the same error, and this worked for me, which I found here: https://coderwall.com/p/7begkw/fatal-remote-error-you-can-t-push-to-git
git remote rm origin git remote add origin [email protected]:user/repo.git git push origin master
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With