technuma technuma - 1 year ago 83
Git Question

Pushing to Git returning Error Code 403 fatal

I want to push to Github.

Using Ubuntu 14.04LTS

So, I commit in the following steps.

echo "# test" >>
git init
git add
git commit -m "first commit"
git remote add origin
git push -u origin master

But, below error occurred.

error: The requested URL returned error: 403 Forbidden while accessing

fatal: HTTP request failed

I know solve this error this way

git remote set-url origin

In this way , I must enter password.

$ git push origin master

But I hate to enter password.

I have checked this, but I don't solved.

Pushing to Git returning Error Code 403 fatal: HTTP request failed

Please tell me how to push without password.

Answer Source

You have to either use https and enter your password or use ssh (and associate your public ssh key to your github account)

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download