![](https://img-blog.csdnimg.cn/20201014180756913.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
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 · 2193 阅读 · 1 评论 -
git--submit coding
git initgit add README.mdgit commit -m “first commit”git branch -M maingit remote add origin https://github.com/DongTom/record.gitgit push -u origin main原创 2021-04-21 15:06:22 · 348 阅读 · 0 评论 -
git切换分支
查看所有分支git branch -a切换命令:git checkout -b branchname origin/branchname切换成功原创 2021-01-20 15:01:21 · 83 阅读 · 0 评论 -
git 更换 提交地址
git remote rm origingit remote add origin http://xxx.xxx.xx.xx:…git push --set-upstream origin branchname原创 2021-01-18 11:27:48 · 599 阅读 · 0 评论 -
.gitignore不起作用,已经被纳入版本管理中心,清除缓存即可
如果某些文件已经被纳入了版本管理中心,此时在gitignore中声明忽略路径或文件名是不起作用的,这时我们要先把本地缓存删掉,然后再进行git的push,这样就不会出现忽略的文件了,git清除本地缓存命令如下:git rm -r --cached .去掉已经托管的文件,然后重新提交:git add . git commit -m "update" // ...原创 2020-10-19 10:37:38 · 256 阅读 · 0 评论 -
git每次pull,push都要输入账号密码,一行代码解决
在.git文件夹空白处右击,Git Base Here,输入git config credential.helper store回车,只需要再输一次账号&密码,就会被记住,以后每次pull,push都不用再输入密码了原创 2020-10-21 14:56:46 · 218 阅读 · 0 评论