How to push large files in the Github Repository (100% WORKING!!!)

Lucky Bachawala
4 min readMay 23, 2021

--

This blog is all about how to push large files on GitHub

Initially, when you Drag files to add them to your repository or choose your file more than 25 Mb you will be notified that

“Yowza, that’s a big file. Try again with a file smaller than 25MB.”!!!!!

I will help you out to solve this issue with few steps.

Step: 1

First, Delete the repository which you have created now

Step: 2

Download 2 files in your system as the link provided below

1 git: click on the Link (Download the Latest source Release for windows)

2 Git Large File Storage (LFS): click on the Link (Download the Latest updated version)

Now open Environment variables in your system

  • Click of Environment variables
  • In system variables double click on the path, make sure that git cmd and git LFS is present.
Image-1

NOTE: If the path is not present just past the as above shown or go to your Program Files and then go to Git →cmd past the path and Git →LFS past the paths separately.

Step: 3

Now a new create the repository without Initialize repository with a README file.

After creating a repository, Make sure you get this type of page.

image-2

Step:4

Now open the anaconda prompt from your start bar, follow the steps below

  • Type “cd (space) past the path of the file which you want to push”
cd (path of the file which which you want to push)
  • Next type “git lfs install” press enter.
git lfs install

Note: You only need to run this once per user account.

Now open your GitHub and follow the steps of create a new repository on the command line as shown below.

past the code in your anaconda prompt, one by one as I have shown below

— Type “git init” press enter.

git init
  • Now type “dir” to check files are present in the path.
dir
  • Next type “git add (Just copy past above file which is shown in dir)”

For example as shown in the image below

git add 
  • Type “git commit -m “first commit”
git commit -m "first commit"
  • Next Type or past “git commit -m “first commit”
git commit -m "first commit"
  • Past “git remote add origin https://---------.git”(which as shown in your GitHub page)
git remote add origin https://github.com/(name of your file).git
  • Now type “git push -u origin main”
git commit -m origin main

wait for a while after pasting to load the files

Now you just refresh GitHub you will be surprised that all your required files will be pushed into it. BAMMMM!!!!!!!!!!!!!!!

If you ❤ this article, be sure to click 👏 below to recommend so that it may be helpful to any of those who are facing issues of it and if you have any questions, leave a comment and I will do my best to answer.

For being more aware of the world of machine learning, follow me. It’s the best way to find out when I write more articles like this.

You can also follow me on Instagram, find me on LinkedIn or email me directly. I’d love to hear from you.

That’s all folks, Have a nice day :)

--

--