Home > Back-end >  Not able to push to GitHub
Not able to push to GitHub

Time:01-04

I am trying to push code to my private repo on github but I am getting the error in the screenshot.

I made a new branch and tried to push but for some reason it is not working.

The screenshot that has the error

CodePudding user response:

As it says in the error - you are trying to push a 176MB file, which is greater than GitHub supports. I'd suggest putting it into your .gitignore or using Git LFS.

CodePudding user response:

If you read the error message it states "This exceeds GitHub's file size limit of 100.00MB"

So you've to exclude that file from being pushed. I would recommend this .gitignore file which will prevent this file and other files from being pushed.

In order to use the .gitignore file, create in the root directory of your repository (The same folder .git is in) a file called .gitignore paste the content of the site above in that file.

  •  Tags:  
  • Related