fatal: Could not read from remote repository.的解决办法
来源:互联网 发布:淘宝商铺怎么开通花呗 编辑:程序博客网 时间:2024/04/25 17:27
fatal: Could not read from remote repository.的解决办法
查看远端地址 git remote –v
查看配置 git config --list
git status
git add . // 暂存所有的更改 git checkout . // 丢弃所有的更改 git status // 查看文件状态 git commit -m "本次要提交的概要信息" // 提交
- 1
- 2
- 3
- 4
设置远端仓库地址 git remote set-url origin 你的远端地址
git push origin master出现以下情况:
解决办法:删除当前key,然后重新生成key,
会在本地C:\Users\你的用户名.ssh生成文件夹,里面有id_rsa和id_rsa.pub两个文件
然后复制id_rsa.pub文件里面的内容,到https://github.com/settings/keys新建一个,
设置远程地址:(上面新建的)
git remote add origin_new 新的地址
git remote –v查看
git push origin_new master重新推送
下面是设置用户名
Git config –global user.name “用户名”
git config –global user.email 邮箱地址
设置代理:
git config –global https.proxy http://127.0.0.1:1080
取消设置代理:
git config –global –unset https.proxy
取消git init操作时出现 rm: cannot remove ‘.git’: Is a directory
是因为输入的命令是: rm -f .git
解决办法:rm -rf .git 即删除整个.git目录
failed to push some refs to ‘git@github.com:*.git’ hint: Updates were rejected ···
使用git push origin master的时候出现一下错误:
解决办法:
git push -f origin master或者git pull下
恢复不小心删除的 git stash 文件:
git fsck //找到dangling的对象git show id //上面列出的每一条记录的最后一个字符串,按 enter 查看具体信息git stash apply id
- 1
- 2
- 3
git 回滚提交
//reset将一个分支的末端指向另一个提交。这可以用来移除当前分支的一些提交, 让master分支向后回退了两个提交git checkout mastergit reset HEAD~2//Revert撤销一个提交的同时会创建一个新的提交, 找出倒数第二个提交,然后创建一个新的提交来撤销这些更改,然后把这个提交加入项目中。git revert HEAD~2
- 1
- 2
- 3
- 4
- 5
- 6
错误:Please enter a commit message to explain why this merge is necessary. 解决办法:
1. (可选)按键盘字母 i 进入insert模式
2. (可选)修改最上面那行黄色合并信息
3. 按键盘左上角”Esc” (退出insert模式)
4. 输入”:wq”,按回车键即可(提交)
转载自:http://blog.csdn.net/huahua78/article/details/52330792
- fatal: Could not read from remote repository.的解决办法
- fatal: Could not read from remote repository.的解决办法
- fatal: Could not read from remote repository.的解决办法
- fatal: Could not read from remote repository.的解决办法
- fatal: Could not read from remote repository.的解决办法
- fatal: Could not read from remote repository
- Permission denied (publickey) fatal:Could not read from remote repository
- Permission denied (publickey). fatal: Could not read from remote repository.
- Permission denied (publickey).fatal: Could not read from remote repository.
- Permission denied (publickey). fatal: Could not read from remote repository
- fatal: Authentication failed could not read from remote repository
- PHPStorm 报fatal: Could not read from remote repository的解决
- Could not read from remote repository.
- Could not read from remote repository
- git: Permission denied(publickey). fatal:Could not read from remote repository.
- Push failed: Failed with error: fatal: Could not read from remote repository.
- Git 解决Bug:fatal: Could not read from remote repository ——诺诺"涂鸦"记忆
- Android Studio 2.1 Beta Fetch failed fatal: Could not read from remote repository
- Ubuntu开机启动脚本
- iOS屏幕旋转详解
- Spring Boot中的缓存支持(一)注解配置与EhCache使用
- 百度地图检索示例
- 【广告项目】mysql-select-if用法
- fatal: Could not read from remote repository.的解决办法
- 导航栏和页面融合的渐变色
- 多进程多线程爬取图片
- JQuery(1)
- JavaScript:为什么函数声明后可以不加分号而函数表达式后要加分号呢?
- log4j实现日志记录
- windows系统下Python环境的搭建
- 第4周项目5(2)-循环双链表应用
- 下载prerender-spa-plugin 失败解决方案