ssh: git@github.com:LianzePuppet/GOenrich.git
$ ssh-keygen -t rsa -C “1187354030@qq.com”
然后在setting里面添加SSH
$ ssh -T git@github.com
由于GitHub每次执行commit操作时,都会记录username和email,所以要设置它们:
git config --global user.name “LianzePuppet”
git config --global user.email “1187354030@qq.com”
右键git bash here
git init
git add .
git commit -m “初次提交哈哈”
本地仓库建立完毕
git remote add origin git@github.com:LianzePuppet/GOenrich.git
origin后面跟着仓库地址
git pull --rebase origin master
最后一步:git push -u origin master
报错:
原因:线上生成、编辑了README.md文件,而本地代码文件中不包含它,所以线上线下就对不上了。
从Github安装该R包
install.packages(“devtools”)
library(devtools)
install_github(" LianzePuppet/GOenrich ")
解决Error: Failed to install ‘unknown package’ from GitHub: HTTP error 401. Bad credentials 问题
解决 devtools::install_github 的 SSL/TLS connection failed 问题
打开本地 Git Bash 窗口,将自己的 cacert.pem 文件路径替换上去。
git config --global http.sslBackend “openssl”
git config --global http.sslCAInfo C:/Users/hp/Documents\R/win-library/4.0/RCurl/CurlSSL/cacert.pem
https://www.cnblogs.com/GoubuLi/p/12660539.html
https://blog.csdn.net/yuanzhoulvpi/article/details/104796859