Push rejected?
Hello,
my git push is rejected and after a look in the git console it seems that the file is to big:
08:47:03.447: [Fiverr] git -c credential.helper= -c core.quotepath=false -c log.showSignature=false push --progress --porcelain origin refs/heads/master:master
Enumerating objects: 37, done.
Delta compression using up to 4 threads
Total 28 (delta 14), reused 1 (delta 0), pack-reused 0
remote: warning: File bigamericandrea/bigamericandrea.zip is 99.25 MB; this is larger than GitHub's recommended maximum file size of 50.00 MB
remote: warning: File bigamericandrea/build/TST/PKG-00.pkg is 99.85 MB; this is larger than GitHub's recommended maximum file size of 50.00 MB
remote: error: GH001: Large files detected. You may want to try Git Large File Storage - https://git-lfs.github.com.
remote: error: Trace: edce8d99605bf69d5aa1c1b68ead97555dc6f209fa5de1a18479d3df897f67e9
remote: error: See http://git.io/iEPt8g for more information.
remote: error: File bigamericandrea/OptionsTracker.exe is 100.11 MB; this exceeds GitHub's file size limit of 100.00 MB
error: failed to push some refs to 'https://github.com/Rapid1898-code/Fiverr.git'
To https://github.com/Rapid1898-code/Fiverr.git
! refs/heads/master:refs/heads/master [remote rejected] (pre-receive hook declined)
Done
How is it possible to ignore a specific file for commit / pushing to github?
(when i right click on the file i see no option for that...)
Is the only way to do this manually with a gitignore-file?
(or is there some support / help in the IDE for that?)
Please sign in to leave a comment.
Hello @...
You don't have the "add to .gitignore" option since the file is already added to Git.
In order to remove a file from git, first, you need to run "git rm --cached <filename>" and then you will be able to add it to .gitignore.
Speaking of ignoring specific file for push - since you have already committed a file you will need to either "Undo commit" or Interactively Rebase and remove file(s) from respective commits.
You may also consider Git LFS for future :
https://git-lfs.github.com/