Git and github - playmakermz/pustaka GitHub Wiki

Setting Github ssh

ssh-keygen # dalam membuat password, buatlah yang aman
cat ~/.ssh/id_anda.pub # ganti id_anda dengan nama ssh baru anda
# Lalu masuk ke Settings>SSH and GPG Keys, buat kunci baru dengan mengelik New SSH Key. Lalu masukkan key yang sudah dibuat
ssh -T [email protected] # cek konektivitas
git clone # tempel kode ssh dari github

Setting git config

  • git config --global core.editor "vim"
  • git config --global --edit
  • example inside git config
# This is Git's per-user configuration file.
[user]
# Please adapt and uncomment the following lines:
name = playmakermz
email = [email protected]
[core]
	editor = vim

Refrensi