Skip to content

Instantly share code, notes, and snippets.

@hadihammurabi
Last active July 9, 2019 16:07
Show Gist options
  • Save hadihammurabi/6cf7c7e57bde16799bae49b3b4fbe464 to your computer and use it in GitHub Desktop.
Save hadihammurabi/6cf7c7e57bde16799bae49b3b4fbe464 to your computer and use it in GitHub Desktop.

1. Clone repository hasil dari fork:

git clone git@github.com:USERNAME-KAMU/REPOSITORY-HASIL-FORK.git

2. Tambahkan alamat remote repository asli ke repository lokal hasil fork:

cd REPOSITORY-HASIL-FORK
git remote add upstream https://github.com/USERNAME-PEMILIK-ASLI/REPOSITORY-ASLI.git
git fetch upstream

3. Mengambil update dari repository asli ke repository lokal hasil fork:

git pull upstream master
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment