21 Feb 2025 -
Membuat akun github lalu Mengaitkan repository GitHub fork ke folder di komputer
Buka website GitHub
Buka repository GitHub yang ingin kamu fork.
Klik tombol “Fork” (biasanya di kanan atas).
Pilih akun GitHub untuk sebagai tempat fork.
Buka halaman repository hasil fork.
https://github.com/username-kamu/nama-repo.git
git clone https://github.com/username-kamu/nama-repo.git
Masuk ke folder-nya:
cd nama-repo
git remote add upstream https://github.com/username-asli/nama-repo.git
html
git remote -v
htmlorigin https://github.com/username-kamu/nama-repo.git (fetch)
origin https://github.com/username-kamu/nama-repo.git (push)
upstream https://github.com/username-asli/nama-repo.git (fetch)
upstream https://github.com/username-asli/nama-repo.git (push)
git pull upstream main
Ganti main dengan nama branch utama (kadang bisa master).
git checkout main
git pull upstream main