Skip to content

mansourehk/Git-Large-File-Storage

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 

Repository files navigation

How to use LFS to upload large files

  • Download LFS for windows HERE

  • Run cmd

  • change directory to "the path to the folder contain your data for upload"

  • Run the following lines:

  >> git init
  >> git lfs install
  >> git lfs track "*.json"
     [Repeat the same line for other type of files you want lfs to track, like .psd .txt .mat and so on.]
     [If you want to add a specific folder use "myfolder/**"]
  >> git add .gitattributes
  >> git add yrfile.json
     [no need to use double quotation for the name of your file]
     [If you want to add a specific folder put the name of that folder instead of yrfile.json]
  >> git commit -m "yr comment"
  >> git remote add origin https://github.com/mansourehk/Git-Large-File-Storage.git
     [Add your repository url address instead of the aformentioned url]
  >> git push origin master
     [Or force push "git push -f origin master" (Mostly this works)]

If your repository contains some other files, clone or git pull the data, and then git push all.

About

How to upload a +50MB file in Github

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors