最佳答案
如何丢弃所有未被推送的 git 提交,然后强制 git 不提交 data/目录中的任何内容?
我试图强制覆盖存储在 github 上的 c9.io 项目的所有更改。我不小心添加了一些 mongodb 数据文件。我试图将 data/目录添加到。吉蒂诺尔。我从 Github 网站上下载了最新消息。但是,当我尝试 git push 时,这些数据/中的顽固文件仍然暂存以便提交。我还尝试了 git 复位、 git rebase、 git clean 和 这个,其中我将 dmpfile.sql 更改为 pi/data/node-login.1。
拜托帮帮我,我已经在这里呆了好几个小时了,我真的很沮丧
Counting objects: 15, done.
Delta compression using up to 2 threads.
Compressing objects: 100% (13/13), done.
Writing objects: 100% (13/13), 150.22 KiB | 92 KiB/s, done.
Total 13 (delta 6), reused 0 (delta 0)
remote: warning: File pi/data/local.0 is 64.00 MB; this is larger than GitHub's recommended maximum file size of 50 MB
remote: warning: File pi/data/node-login.0 is 64.00 MB; this is larger than GitHub's recommended maximum file size of 50 MB
remote: error: GH001: Large files detected.
remote: error: Trace: e6ade98208c08b634ed28aefea36dfbb
remote: error: See http://git.io/iEPt8g for more information.
remote: error: File pi/data/node-login.1 is 128.00 MB; this exceeds GitHub's file size limit of 100 MB
To git@github.com:bobbyg603/goddard.git
! [remote rejected] master -> master (pre-receive hook declined)
error: failed to push some refs to 'git@github.com:bobbyg603/goddard.git'
。吉蒂诺尔:
lib-cov
*.seed
*.log
*.csv
*.dat
*.out
*.pid
*.gz
data/
pids
logs
results
npm-debug.log
node_modules
.project
.settings
谢谢, 鲍比