相关疑难解决方法(0)

如何修改现有的,未删除的提交?

我在提交消息中写了错误的东西.或者,我忘了包含一些文件.

如何更改提交消息/文件?提交尚未被推送.

git git-amend git-commit git-rewrite-history

7669
推荐指数
27
解决办法
246万
查看次数

"Git推动非快进更新被拒绝"是什么意思?

我正在使用Git来管理我的两台计算机和我的开发.我正在尝试将更改提交给GitHub,我收到错误.

无法推送一些参考<repo>.为了防止您丢失历史记录,拒绝了非快进更新.在再次推送之前合并远程更改.

可能导致这种情况的原因是什么?

编辑:

拉回购物品会返回以下内容:

*分支主 - >主(非快进)已经是最新的

推送仍然给我上述错误.

git version-control

144
推荐指数
5
解决办法
17万
查看次数

即使在删除文件后,开发日志文件也超过了GitHub的文件大小限制

我试图在我的应用程序中提交一些更改,并收到一个错误,开发日志太大,512MB.我删除了开发日志文件并再次尝试,同样的错误显示日志大小为103.2MB.我也试过rake log:clear同样的错误.

显然,开发日志文件正在被重写.我从来没有使用过日志,可能不会错过它们...有没有办法提交git而不是重写开发日志?

 2 files changed, 0 insertions(+), 1096498 deletions(-)
 rewrite log/development.log (100%)
 rewrite log/production.log (100%)
[master]~/Projects/schoolsapi: git push origin master
Username: 
Password: 
Counting objects: 26, done.
Delta compression using up to 2 threads.
Compressing objects: 100% (15/15), done.
Writing objects: 100% (17/17), 6.90 MiB | 322 KiB/s, done.
Total 17 (delta 7), reused 0 (delta 0)
remote: Error code: 026c4e06d174bf5b0e51c754dc9459b0
remote: warning: Error GH413: Large files detected.
remote: warning: See http://git.io/iEPt8g for more information.
remote: error: File …
Run Code Online (Sandbox Code Playgroud)

git logging ruby-on-rails

6
推荐指数
1
解决办法
1649
查看次数