Public and private keys

  1. The public and private keys are stored in User/ XXX /.ssh
  2. Ssh-keygen -t rsa -b 4096 C “Your own email address”
  3. Id_rsa private key file, id_rsa.pub public key file
  4. Go to github personal space, profile -> SSH and GPG Keys -> New SSH Key. Copy in the contents of the id_rsa.pub file.

Local repositories are pushed to Github

  1. Git remote add Add a local name for the remote repository (xxxx.git).
  2. git fetch github master
  3. git checkout master
  4. git merge –allow-unrelated-histories github/master
  5. git push github master

Github quickly searches for desired resources

  1. XXXX in readme Searches for the keyword in the readme file of the warehouse
  2. XXX stars>1000 Search for stores with more than 1000 stars.
  3. Filename: XXX Searches for the keyword in code