![](https://img-blog.csdnimg.cn/20201014180756918.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
git
通下水道技术一流
纸上得来终觉浅
展开
-
git push时出现 error: failed to push some refs ... hint: Updates were rejected because the remote ...
1.问题如下:echigh@huangchenggong:/mnt/e/work/workspace/withdraw_validdata_from_file/withdraw$ git push -u origin mainUsername for 'https://github.com': echighPassword for 'https://echigh@github.com':To https://github.com/echigh/withdraw_frontbytes_of_fil原创 2021-10-17 22:46:26 · 1469 阅读 · 0 评论 -
git log 只能看到部分提交记录怎么办
其实是因为命令窗口太小,只显示了部分窗口解决办法:1)按回车,继续看更以前的2)按end键,直接可以看最早的原创 2021-08-24 20:29:59 · 3736 阅读 · 2 评论 -
git clone 时出现 fatal: Could not read from remote repository.Please make sure you have the co...
今天我在用廖雪峰的方法进行git clone的时候,遇到了标题所示的问题参考:从远程库克隆 - 廖雪峰的官方网站先给出一个简单的解决方法,用如下链接里面的命令去拷贝:参考:Git - Getting a Git Repository接下来,我想彻底解决它,思路如下:1.删除本地的公钥(删除不了,权限不够)2.新建公钥(可以覆盖原来的公钥),并在github上设置Git - 生成 SSH 公钥看生成时间可知,为上面一个文件夹里面的那个进不去先提升权限:sudo: cd:原创 2021-09-29 20:41:46 · 8146 阅读 · 0 评论 -
git merge合并分支后冲突conflict
1.现象:Automatic merge failed; fix conflicts and then commit the result.2.解决方法:把源码中冲突的部分,删的删,改的改,合并的合并,然后重新编译,然后提交,然后再重新merge参考:https://blog.csdn.net/soulwyb/article/details/89305387http://genomewiki.ucsc.edu/index.php/Resolving_merge_con原创 2021-09-08 13:16:53 · 713 阅读 · 0 评论 -
git push出现 remote: Support for password authentication was removed on August 13, 2021.
原因:github不再接受明文密码连接,要用令牌(tocken),去github网站上生成自己的令牌,然后在输入密码时用令牌来替代密码,回车即可参考如下:github开发人员在七夕搞事情:remote: Support for password authentication was removed on August 13, 2021._星空-CSDN博客...原创 2021-09-27 16:56:28 · 235 阅读 · 0 评论 -
git commit提示: “Please tell me who you are”
在Git控制台输入一下命令(以下填一个自己的邮箱和用户名)git config --global user.email "邮箱"git config --global user.name "用户名"再次执行git commit ,正常无误原创 2021-07-19 13:58:27 · 100 阅读 · 0 评论 -
git * (HEAD detached from xxx) 的解决
在使用git的过程中,若使用 git checkout < commit id>,那么,会进入游离状态,出现标题所示的提示,表示当前没有任何分支进行管理,git后台会生成一个匿名分支,但是匿名分支有一个问题,就是无法保存追溯,切到其他分支后就等于丢失了解决办法:1.在进入游离状态后创建一个新分支2.切入新分支3. 此时游离状态就处在了这个新分支上参考:https://blog.csdn.net/u011240877/article/details/76273335...原创 2021-08-23 23:08:53 · 868 阅读 · 0 评论