I am developing an ionic app,and I use Git as my version control method.My remote repository is located in GitHub.Whenever I am trying to push some content from my local repository to remote repository,Git will give this Fatal Error,
fatal: remote error:
You can't push to git://github.com/evilmin/ionicMyApp.git
Use https://github.com/evilmin/ionicMyApp.git
I checked the remote links using the command git remote -v
and it gave me this output.
origin git://github.com/evilmin/ionicMyApp.git (fetch)
origin git://github.com/evilmin/ionicMyApp.git (push)
Means the error was right and the links are in SSH. So I tried removing the origin and add it as a HTTPS link using
git remote rm origin
git remote add origin https://github.com/evilmin/ionicMyApp.git
But when I run the git remote -v
to check the remotes,I get the same output that I have mentioned above,which means the links are still in SSH,and my command has not worked.
And yes I tried pushing again,but the same error occurs.
I even tried reinstalling Git,but the issue persists.
Whatever the repository is,every time I try to push from a local repo to its remote repo,it will give me this error.
My main concern is how to enable push functionality again in Git.Any ideas would be helpful.
It would be better if there is a way to do this using HTTPS,rather than SSH.
P.S. : This happened not only when I was developing an Ionic app,but also other times,hence I believe Ionic was not the reason.