Setting up existing local Github repo using personal access token


Personal access token

Sudah beberapa waktu ini, Github meminta pengguna untuk mengakses repositori menggunakan personal access token. Bukan menggunakan user dan password seperti biasa.

Begini caranya

  • Create your personal access token following this link .
  • Copy the created token, paste it somewhere
  • Copy the https link of your repository, paste it somewhere
  • open terminal (Windows prompt kalau Anda menggunakan Windows)
  • change directory to your local repository
  • type git remote set-url origin https://<token><git_url> eg: git remote set-url origin
  • then pull once by typing git pull https://<token>@<git_url>.git eg: git pull
  • you’re ready to do git add . , git commit -m "aaa bbb ccc and git push origin master

Repeat the process if your personal access token expired.


About the author

My current focus is how to provide the hydrostratigraphy of volcanic aquifers in Bandung area. The research is based on environmental isotope measurement in groundwater and morphometry. My work consists of hydrochemical measurements. I am using multivariate statistical methods to provides more quantitative foundation for the analysis and more insight into the groundwater behavior, especially its interaction with surface water. I use open source apps like R and Python to do the job. In my spare time, I also have a side project to promote open science in Indonesia's research workflow. One of my current focus is promoting INARxiv, as the first preprint server of Indonesia ( and serving as ORCID and OSF ( ambassador. Research interest: Hydrochemistry, multivariate analysis, and R programming. Blog:, (