Git

Update Git Authorization Token

Due to security reason, you cannot pull code in git without using your token. The password for your account also doesn't work.

To make the pull to the server more easily each time instead of finding the token of your account. Most of the projects on both AWS and Digital Ocean server are embed the remote url with token instead.

Generate Account Token

  • Go to your GitHub Profile Settings > Developer Settings > Personal access tokens

  • Click Generate New Token

  • Enter Notes

    • The checkboxes doesn't matter that much related to this article issue.

  • Click Generate Token

Add/Update/Remove Remote

Example Remote URL: https://<token>@github.com/happenn-virtual/happenn-api.git

Remove Current Master Remote

$ git remote remove origin

Add New Master Remote

$ git remote add origin https://<token>@github.com/happenn-virtual/happenn-api.git

Last updated