我需要帮助做任何必要的事情,以便能够推送这个仓库的剩余部分。
(附注:这是一个带有IPython节点和代码的目录。我有一个自动推送脚本,这就是为什么我落后了近100次提交。我刚刚注意到它没有同步)
以下是我尝试过但没有成功的方法:
git status
分支 master 你的分支领先于 'origin/master' 100 次提交。 (使用 "git push" 发布您的本地提交) 没有要提交的内容,工作目录干净。
git filter-branch --index-filter 'git rm --cached --ignore-unmatch "Education/Coursera/Exploratory Data Analysis/Week1/household_power_consumption.txt"' --tag-name-filter cat -- --all
重写d381c7d5037a6a26abb2b5cef06e57d8b86a398b(95/189)rm 'Education/Coursera/Exploratory Data Analysis/Week1/household_power_consumption.txt'
..
重写f639b57714a5d57ff37b9d4a55c1c69fc0b514a8(176/189)rm 'Education/Coursera/Exploratory Data Analysis/Week1/household_power_consumption.txt'
重写587c8b65f19315ebeb6627a75bd703a5dbdec208(189/189)Ref 'refs/heads/master'已被重写
警告:Ref 'refs/remotes/origin/master'未更改
git rm "Education/Coursera/Exploratory Data Analysis/Week1/household_power_consumption.txt"
致命错误:路径规范“Education/Coursera/Exploratory Data Analysis/Week1/household_power_consumption.txt”没有匹配到任何文件。
git push
警告:push.default未设置;其隐含值将从Git 2.0中的“matching”更改为“simple”。要消除此消息并在默认更改后保留当前行为,请使用: git config --global push.default matching 要消除此消息并立即采用新行为,请使用: git config --global push.default simple 当push.default设置为“matching”时,git将将本地分支推送到已存在同名的远程分支。 在Git 2.0中,Git将默认采用更加保守的“simple”行为,该行为仅将当前分支推送到“git pull”用于更新当前分支的相应远程分支。 有关详细信息,请参见“git help config”,然后搜索“push.default”。 (“simple”模式是在Git 1.7.11中引入的。如果您有时使用较旧版本的Git,请改用类似模式“current”而不是“simple”) 计数对象:841,完成。 使用最多2个线程进行增量压缩。 压缩对象:100%(578/578),完成。 写入对象:100%(835/835),31.79 MiB | 3.14 MiB/s,完成。 总共835个(增量196),重复使用0个(增量0个) 远程:警告:文件.git-rewrite/t/Education/Coursera/Exploratory Data Analysis/Week1/household_power_consumption.txt为74.92 MB;这大于GitHub建议的最大文件大小50.00 MB 远程:警告:文件.git-rewrite/t/Education/Coursera/Exploratory Data Analysis/Week1/household_power_consumption.txt为69.38 MB;这大于GitHub建议的最大文件大小50.00 MB 远程:错误:GH001:检测到大型文件。 远程:错误:跟踪:f013f5e75b4f35d07de5d2d9ef1116bd 远程:错误:有关更多信息,请参见http://git.io/iEPt8g。 远程:错误:文件.git-rewrite/t/Education/Coursera/Exploratory Data Analysis/Week1/household_power_consumption.txt为126.80 MB;这超出了GitHub的文件大小限制100.00 MB 对于git@github.com:rbohac/IPython-Notebooks.git ![拒绝推送]主人->主人(预接收钩子被拒绝) 错误:无法将某些引用推送到'git@github.com:rbohac/IPython-Notebooks.git'