Tutorial

Setup Git & Clone Repository

Cara install Git dan clone bot repository di VPS atau RDP.

Linux/VPS

sudo apt install git -y
git --version

Windows/RDP

Download Git dari:

https://git-scm.com/download/win

Install dengan default settings, pastikan "Git Bash" terinstall.

Clone Repository

# Clone public repo
git clone https://github.com/username/repo-name.git

# Clone private repo (akan diminta username & token)
git clone https://github.com/username/private-repo.git

Git Commands

git pull # Update dari remote
git status # Cek status perubahan
git add . # Stage semua perubahan
git commit -m "message" # Commit perubahan
git push # Push ke remote

💡 Tips

  • • Untuk private repo, gunakan Personal Access Token sebagai password
  • • Generate token di: GitHub Settings → Developer Settings → Personal Access Tokens
← Kembali ke Resources