tags:

views:

84

answers:

1

I somehow deleted the whole directory of my code branch. I cloned a new one. It worked fine except pushing.

~/workspace/wtf (mybranch)]$ git push origin  mybranch 
error: Cannot access URL [my url], return code 22
fatal: git-http-push failed 

git pull works, though. How can I fix it?

A: 

You can't push on a repository you cloned through HTTP. You need to update the URL to either a ssh:// or a git:// type URL.

Guillaume Bodi
I used the same clone command. It worked before until I made the wrong deletion....
what do you have with `git remote -v` ?
Guillaume Bodi