Happenn
  • Introduction
  • System Architect
  • For Dev
    • AWS
      • Domain & CNAME
      • Rescale Instance
      • Request AWS Certificate
      • Generate Certificate with Certbot
      • S3
      • SSH & FTP
      • Auto Scaling
      • RDS MySQL
    • Digital Ocean
      • Virtual Host & Certificate
      • SSH & FTP
    • Server
      • Git
      • Setup the Server
    • Code
      • Laravel/Lumen
      • Vue.js
      • Webpack
      • JavaScript Library
        • Lodash
        • axios
        • Moment.js
      • Code Style Guide
      • Useful Tools
    • HAM Admin
      • Install locally
      • Deploy
    • Happenn API
      • Install locally
      • Install DB locally
      • Make DB changes
    • Happenn IO
      • Install locally
    • Happenn Virtual
      • Install locally
      • Folders and file structure
      • Deploy code
        • Happenn AWS
        • Delegia AWS
    • Happenn Event app
      • Deploy
      • Install locally
Powered by GitBook
On this page
  • Update Git Authorization Token
  • Generate Account Token
  • Add/Update/Remove Remote
  1. For Dev
  2. Server

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
PreviousServerNextSetup the Server

Last updated 2 years ago