Git CLI - Instalasi, Login, Inisialisasi

============================================================================================
Konten:
1. Instalasi Git
2. Login Git
3. Inisialisasi SSH dari PC ke GITHUB / Gitlab
4. Sintaks Dasar Git CLI
============================================================================================

1. Installasi GIT
    Windows
        Download https://git-scm.com/downloads

    Linux
        # RPM-based distribution, such as RHEL or CentOS, you can use dnf:
            sudo dnf install git-all
        # Debian-based distribution, such as Ubuntu, try apt:
            sudo apt install git
        # OpenSUSE
            sudo zypper install git

2. Login Git
    A. Inisialisasi username dan Email pada PC
        git config --global user.name <github_username>
        git config --global user.email <email yang digunakan pada username>

    B. Generate SSH pada pc.
        ssh-keygen -t ed25519 -C "your_email@example.com"

    C. Setelah itu silahkan copy ssh public key: (pilih os yang anda gunakan)
        macOS:
            tr -d '\n' < ~/.ssh/id_ed25519.pub | pbcopy
        Linux (requires the xclip package):
            xclip -sel clip < ~/.ssh/id_ed25519.pub
        Git Bash on Windows:
            cat ~/.ssh/id_ed25519.pub | clip

3. Inisialisasi SSH dari PC ke Github / Gitlab
    A. Github
        - Klik link ini : https://github.com/settings/keys
        - Klik New SSH Key
        - Isi kolom Title sembarang
        - Paste pada kolom KEY
        - Klik Add SSH Key
        - Masukkan Password akun github
        - Selesai
© 2024 Rico Yoga Pradana . All Rights Reserved.
Powered by Flowbite™.