git push 403 error 2018-03-28 05:04

When I use git push to push local changes to github I got this error message:error: The requested URL returned error: 403 Forbidden while accessing<my_project_url> fatal: HTTP request failed. It is easy to solve this problem.

  1. change the remote url to git@git...
git remote set-url origin<your_project_url>
  1. add ssh-key in github, you can click here for more detail.