failed to push into github - large file - github

I tried pushing files into my github repo and a file sized big and indeed i removed that file from my git status. But that file still causes size issues.
Screenshot:

Related

Clone repository only contain about 20GB instead of 40GB

As the title says, I clone a repository from Azure DevOps repository and the clone size is about 20GB. However, the one I push the files is about 40GB workth of files. This is a Unity project and have a lot of files, images, etc. I also add .gitignore file and .attributes file that contain lfs track information and ingnore specific file formats. I tested with Unity if it works and it seems ok so far except I keep getting an error. Will be cause any problems if I keep working on the files I clone? How can I check to see if clone filse are ok or not.
I opened up these clone files (20GB) and change little bit of code. I am getting one error.
I tried with the original one (one that I push from the local computer 40GB) I tested same thing but did not get the error what I got on the 20GB one.
I tried with Github Desktop and Git Bush.
Also, I did LFS install.

Github, tried to push files more than 100mb, made other changes to files less than 100mb, removed the large files but still cannot push, its stuck

Had a project to master and added some files larger than 100 MB into the folder. I tried to push the repo but could not. Then I removed the files but at the same time made a lot of changes to other files which are less than 100MB. Tried to push again but the same error even though the large-size files are removed from the repository. I am trying to push the repo no as it is but GitHub looks like is stuck and won't let me do it as it usually works. Any help on how to push the current project in the repo as it is right now?

Not able to push to GitHub

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.
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.
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.

GitHub Issue while pushing existing repo

I have a code in my bitbucket and now I want to push it to my github account. I am facing issue while pushing the code as it contains a file around 223 MB. Now in bitbucket we used to do shallow cloning using depth 1. So we deleted the file using git rm command but still we are not able to push the code as it is saying cannot upload file greater than 100 MB and referring to the same file again which we have already deleted. Any idea how this can be fixed. I want to retain all my commits and tags so I cannot re-initialize git and create all new repo and push code. This what i think is due to shallow cloning as full git history still contains the reference to the big file. we are doing depth 1 cloning so last commit is only coming to our local. So How can I delete the file from full history
See, if you try above 50mb, check the files size again.
Conditions for large files:
Refresh Cache

undo git add to remove staged files

I accidentally use git add . to add files to staging area and did a git push which got rejected because I have a large file. I want to undo git add . to unstage the files added. After some search I found git reset to reset the staged files. I also go to my work directory and delete that large file. This time I tried git add ./myfolder/myfile.py but still got rejected by remote saying that contains large files. remote: error: File myfolder/myfile.parquet is 374.75 MB; this exceeds GitHub's file size limit of 100.00 MB. This file was git add in the first time. It seems that git reset does not work. How to do this properly?