biar nggak bolak balik ngetik password diterminal, add user dan password git.
cara gampang tapi kurang aman :
git config --global user.name "telo"
git config --global user.password "telo123"
git config --global credential.helper store
cara relatif aman yaitu menggunakan ssh.
1. buka terminal ketik
ssh-keygen -t ed25519 -C “email@telo.com”
2. by default keystore tergenerate ke ~/.ssh/id_ed25519.pub, copy string isinya.
more ~/.ssh/id_ed25519.pub
3. buka https://gitlab.com/profile/keys, kemudian paste pada bagian key.
4. isi title, misal laptop-mac
5. click add key
6. testing ssh ke git repo kita
ssh -T git@gitlab.com:telo/project-telo.git