GitHub
公钥与私钥
- 公私钥存放位置:User/xxx/.ssh
- 生成公钥和私钥的命令:ssh-keygen -t -rsa -b 4096 C "你自己的邮箱地址"
- id_rsa 私钥文件 , id_rsa.pub 公钥文件
- 进入github个人空间,profile -> SSH and GPG Keys -> New SSH Key。将id_rsa.pub文件的内容copy进来.
本地仓库推到github
- git remote add 给远程仓库起一个本地名字(例:github,如果不设置 默认为origin) 远程仓库(xxxx.git)。
- git fetch github master
- git checkout master
- git merge --allow-unrelated-histories github/master
- git push github master
github快速搜索想要的资源
- xxxx in readme 在仓库的readme文件中搜索关键字
- xxx stars>1000 搜索大于1000星的仓库。
- filename:xxx 在code中搜索关键字