git - Fatal error when pushing to GitHub -


i completley new git. working on sl6 , created file in local repository. have created remote repository on github. added new file, , committed it, following error when try push repository

error: requested url returned error: 403 forbidden while accessing

any great, if has been idiot proofed :)

to able login using https protocol, should first set authentication credential git remote uri:

git remote set-url origin https://yourusername@github.com/user/repo.git you'll asked password when trying git push.

in fact, on http authentication format. set password too:

https://youruser:password@github.com/user/repo.git should aware if this, github password stored in plaintext in .git directory, undesirable.

so in such way won't 403 error


Comments

Popular posts from this blog

android - Automated my builds -

how to proxy from https to http with lighttpd -

python - Flask migration error -