git
金米kk
这个作者很懒,什么都没留下…
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
git强制覆盖
git强制覆盖本地命令(分步执行): git fetch --all git reset --hard origin/master git pull git强制覆盖本地命令(单条执行): git fetch --all && git reset --hard origin/master && git pull ---------------不明所以的小伙伴慎用… ...原创 2021-08-15 00:20:02 · 3271 阅读 · 0 评论 -
git常见问题处理
The file will have its original line endings in your working directory报错解决 git config --global core.autocrlf false 清除git提交的缓存 git rm -r -f --cached .原创 2021-03-06 17:48:16 · 255 阅读 · 0 评论 -
Cloning failed using an ssh key for authentication提示解决办法
Cloning failed using an ssh key for authentication, enter your GitHub credentials to access private repos Head to https://github.com/settings/tokens/new?scopes=repo&description=Composer+on+名称+时间 to retrieve a token. It will be stored in “C:/Users/Admin原创 2021-03-06 17:18:37 · 1284 阅读 · 0 评论 -
git更新远程代码到本地仓库
理解 fetch 的关键, 是理解 FETCH_HEAD,FETCH_HEAD指的是: 某个branch在服务器上的最新状态’。这个列表保存在 .Git/FETCH_HEAD 文件中, 其中每一行对应于远程服务器的一个分支。 当前分支指向的FETCH_HEAD, 就是这个文件第一行对应的那个分支. 一般来说, 存在两种情况: 如果没有显式的指定远程分支, 则远程分支的master将作为默认的FETCH_HEAD. 如果指定了远程分支, 就将这个远程分支作为FETCH_HEAD. git fetch ori转载 2020-06-09 00:44:52 · 1159 阅读 · 0 评论
分享