Git trying to push file that isn't tracked -
i tried push project github, , received following error:
counting objects: 87, done. delta compression using 8 threads. compressing objects: 100% (78/78), done. writing objects: 100% (87/87), 50.25 mib | 1.14 mib/s, done. total 87 (delta 32), reused 0 (delta 0) remote: warning: file example-attractor/bin/example-attractor_debug.ilk 51.19 mb; larger github's recommended maximum file size of 50.00 mb remote: error: gh001: large files detected. may want try git large file storage - https://git-lfs.github.com. remote: error: trace: f711bd940689c3c64a38c283877b86f8 remote: error: see http://git.io/iept8g more information. remote: error: file example-attractor/example-attractor.sdf 103.62 mb; exceeds github's file size limit of 100.00 mb ! [remote rejected] master -> master (pre-receive hook declined) error: failed push refs
okay, no big deal. added *.sdf
, *.ilk
.gitignore
, removed , added of files, , checked tracked files via git ls-files
:
.gitignore example-attractor/readme.md example-attractor/addons.make example-attractor/example-attractor.sln example-attractor/example-attractor.vcxproj example-attractor/example-attractor.vcxproj.filters example-attractor/icon.rc example-attractor/src/main.cpp example-attractor/src/ofapp.cpp example-attractor/src/ofapp.h
great! files have been removed tracking. tried pushing github again and... got same error. ran git status
, there's no changes:
on branch master branch ahead of 'origin/master' 3 commits. (use "git push" publish local commits) nothing commit, working directory clean
i'm perplexed now! why git still trying push files aren't tracked?
the explanation committed file in 1 of previous 3 commits. need remove them. doing git rebase -i origin/master
. bring editor of commits. replace "pick" "e" 3 commits, save , close editor. git pause after each commit, @ point can delete file index, git commit --amend
, git rebase --continue
. should fine.
Comments
Post a Comment