1,
Problem:
$ git clone ssh://xxxx/yyy.git
Cloning into 'yyy'...
remote: Counting objects: 116720, done
remote: Finding sources: 100% (116720/116720)
Write failed: Broken pipe2335/116720), 259.93 KiB | 140.00 KiB/s
fatal: The remote end hung up unexpectedly
fatal: early EOF
fatal: index-pack failed
Solution:
$ git config --global --add core.compression -1
$ git clone ssh://xxxx/yyy.git
Cloning into 'yyy'...
remote: Counting objects: 116720, done
remote: Finding sources: 100% (116720/116720)
remote: Total 116720 (delta 52413), reused 113035 (delta 52413)
Receiving objects: 100% (116720/116720), 146.37 MiB | 3.96 MiB/s, done.
Resolving deltas: 100% (52413/52413), done.
Checking connectivity... done.
2,账户不匹配
Delta compression using up to 4 threads. Compressing objects: 100% (208/208), done. Writing objects: 100% (215/215), 1.52 MiB | 1.50 MiB/s, done. Total 215 (delta 161), reused 37 (delta 3) remote: Resolving deltas: 100% (161/161) remote: Processing changes: refs: 1, done remote: remote: ERROR: In commit f0159f418688967f9dcad9f51686bbb025167a9c remote: ERROR: committer email address 22222@163.com remote: ERROR: does not match your user account. remote: ERROR: remote: ERROR: The following addresses are currently registered: remote: ERROR: 55555@sina.com remote: ERROR: remote: ERROR: To register an email address, please visit: remote: ERROR: http://10.xx.xx.xx:xxxx#/settings/contact remote: remote: To http://10.xx.xx.xx/APPxxxxx-ios ! [remote rejected] ecosphere_dev -> ecosphere_dev (invalid committer) error: failed to push some refs to 'http://10.xx.xx.xx/APPxxxxx-ios'
方法:
git remote -v //git remote
命令列出所有远程主机。 使用-v
选项,可以参看远程主机的网址
git remote rm origin // 删除远程主机
git remote add origin http://22222@10.xx.xx.xx/APPxxxx-ios //git remote add
命令用于添加远程主机。
3,
fatal: refusing to merge unrelated histories
git pull origin master --allow-unrelated-histories
4,
最新如何解决git 输入github时每次都要输入用户名和密码问题
http://blog.csdn.net/yywan1314520/article/details/51566924
5,
[!] Error installing ZDCChat
[!] /usr/bin/git clone https://github.com/zendesk/zendesk_sdk_chat_ios.git /var/folders/hb/783f8pz96pq0x14fx38tx1dm0000gn/T/d20181204-18532-zkjlaa --template= --single-branch --depth 1 --branch 1.4.0
Cloning into '/var/folders/hb/783f8pz96pq0x14fx38tx1dm0000gn/T/d20181204-18532-zkjlaa'...
error: RPC failed; curl 56 LibreSSL SSL_read: SSL_ERROR_SYSCALL, errno 54
fatal: The remote end hung up unexpectedly
fatal: early EOF
fatal: index-pack failed
有个pod库一直下不下来,于是我按 /usr/bin/git clone https://github.com/zendesk/zendesk_sdk_chat_ios.git /var/folders/hb/783f8pz96pq0x14fx38tx1dm0000gn/T/d20181204-18532-zkjlaa --template= --single-branch --depth 1 --branch 1.4.0
就可以了? 不明原因。先留着
6,
fatal: bad numeric config value '-1pod' for 'core.compression': invalid unit
macOS Sierra现在通过Shift + Command + .
可以很方便的打开和隐藏Finder隐藏文件。
打开之后看到用户/
有个 .gitignore 配置文件。对,就是它,狠狠的删掉,之后清空垃圾桶。
7,
长期存储密码:
git config –global credential.helper store
8, error: The following untracked working tree files would be overwritten by checkout
$ git clean -d -fx ""
9,Q:
git submodule add ssh://git@XXXXXX:xxx/App-iOS ios
'ios' 已经存在于索引中
A:
git rm --cached ios
10:
warning: 因为文件太多,略过不严格的重命名检查。
warning: 您可能想要将变量 merge.renamelimit 设置为至少 14573 并再次执行此命令。
自动合并失败,修正冲突然后提交修正的结果。
Solution:
$ git merge --abort
$ git config merge.renameLimit 999999
11:
checkout error
Git强制覆盖本地跟踪文件。
解决方法:回退到最老版本
git reset --hard origin/master