Tuesday, May 20, 2014

Pushing to a github repo from a firewalled cluster

I cloned my repo from github, but then when I tried to push, I got this complaint:

$ git push
error: The requested URL returned error: 403 while accessing https://github.com/user/repo.git/info/refs

I fixed this by issuing

$ git remote set-url origin https://user@github.com/user/repo.git

No comments:

Post a Comment