![](https://img-blog.csdnimg.cn/20201014180756919.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
git
Pianist Of Keyboard
这个作者很懒,什么都没留下…
展开
-
pull遇到There is no tracking information for the current branch.
有两种情况:1.在git clone后出现warningwarning: remote HEAD refers to nonexistent ref, unable to checkout.2.在pull或push 时遇到如下的warningThere is no tracking information for the current branch.Please specify which branch you want to merge with.See git-pull(1) for原创 2022-03-07 17:39:42 · 178 阅读 · 0 评论 -
permission denied publickey
背景在 git push 的过程中遇到报错permission denied publickey但实际上远程项目是公用的,并不需要方式公钥。排查后发现,是本地初始化项目的时候,使用语句git initgit remote add origin ssh://git@gitlab.xxx:222/xx/xx.git问题出在第二句,用的是SSH的url,走的是SSH验证,难怪说没权限呢解决方案修改本地项目指向的远程项目地址就好git remote set-url origin https原创 2021-07-08 20:24:34 · 179 阅读 · 0 评论 -
git中常见错误及原因
1.git aborting commit due to empty commit message这个异常的原因是:在git 提交时没有写注示文字。原因引发条件:$git commit ,解决方法: $git commit -m "hello,i will commit "转自此篇博客2.git branch与git branch -a 都找不到master分支这是因为远程的仓库是新建...原创 2020-04-17 11:33:47 · 1289 阅读 · 0 评论