GIT PUSH using an access_token


I implemented the oauth2 web flow in order to get access_token from users.
What I would like to do with the access_token is:

  1- Get user informations
  2- Create a repo for this user
  3- Push code to this repo (using git push <remote> <branch>)

The problem is I can’t push code (3), I got “Unauthorized” error

Best regards.