
git
宁长风
白天coder,晚上reader
展开
-
git拉取代码, OpenSSL SSL_read: SSL_ERROR_SYSCALL, errno 10054
继续输入命令 git config http.sslVerify “false” 那么,再次输入命令: git config --global http.sslVerify “false” 转自这里转载 2021-04-22 11:33:46 · 2247 阅读 · 1 评论 -
git--submit coding
git init git add README.md git commit -m “first commit” git branch -M main git remote add origin https://github.com/DongTom/record.git git push -u origin main原创 2021-04-21 15:06:22 · 417 阅读 · 0 评论 -
git切换分支
查看所有分支 git branch -a 切换命令: git checkout -b branchname origin/branchname 切换成功原创 2021-01-20 15:01:21 · 108 阅读 · 0 评论 -
git 更换 提交地址
git remote rm origin git remote add origin http://xxx.xxx.xx.xx:… git push --set-upstream origin branchname原创 2021-01-18 11:27:48 · 631 阅读 · 0 评论 -
.gitignore不起作用,已经被纳入版本管理中心,清除缓存即可
如果某些文件已经被纳入了版本管理中心,此时在gitignore中声明 忽略路径或文件名是不起作用的,这时我们要先把本地缓存删掉, 然后再进行git的push,这样就不会出现忽略的文件了,git清除 本地缓存命令如下: git rm -r --cached . 去掉已经托管的文件,然后重新提交: git add . git commit -m "update" // ...原创 2020-10-19 10:37:38 · 318 阅读 · 0 评论 -
git每次pull,push都要输入账号密码,一行代码解决
在.git文件夹空白处右击,Git Base Here,输入 git config credential.helper store 回车,只需要再输一次账号&密码,就会被记住,以后每次pull,push都不用再输入密码了原创 2020-10-21 14:56:46 · 263 阅读 · 0 评论