Penggunaan git

Get SSH Key

to get ssh key in your computer, and put in your github or gitlab ssh key setting.

cat ~/.ssh/

if there is no key appears, plese generate the key also set global config of git in next section and please add the public key to your github profile.

Generate RSA Key

Just One time for first instalation of git scm,

ssh-keygen -t rsa -b 4096 -C ""

Set config global

Just One time for first instalation of git scm,

$ git config --global "John Doe"
$ git config --global

Enabling SSH connections over HTTPS

Just in case if your wifi or lan blocking port 22

$ nano ~/.ssh/config
  Port 443
  User git

  User git
  Port 443

Forking repository and keep update from source repo

Please click fork from web interface, after that clone your repo in your desktop. Select SSH in clone tab.

git clone

git bash into your repo folder, just one time add upstream from source of fork repo. Use HTTPS in clone tab from source repo.

git remote add upstream

before pull request and working in your repo, always do

git fetch upstream
git checkout main
git merge upstream/main

After that you may pull request.