How to Setup Git LFS for New and Existing Projects (Works With Unity)

Max O'Didily January 28, 2024
Video Thumbnail
Max O'Didily Logo

Max O'Didily

View Channel

About

I post tutorials ranging from coding to game development to useful tech tutorials.

Video Description

How to Setup Git LFS for New and Existing Projects (Works With Unity) Greetings, in this tutorial we shall be looking at how to setup Git LFS for your github project. This Git LFS tutorial will work for Git projects you have just setup and for Git projects that you already have. Here is what you need to download and install to get Git LFS setup on your system: GitBash download: https://git-scm.com/downloads Git LFS download: https://git-lfs.com/ Once you have Gitbash and Git LFS installed, you can follow along with this tutorial. Here are the commands used in this Git LFS tutorial: One line per command: git lfs install git lfs track "*.unity" git lfs track "*.mp4" git add .gitattributes git commit -m "Tracking files with LFS" git lfs migrate import --include="*.unity,*.mp4" --everything git push origin main --force Those are all of the commands used in this how to setup Git LFS tutorial. For the git lfs track commands, you can replace the file extensions with whatever file types you want git LFS to track. For example you could do "*.psd" to track photoshop files. The * is important. It is a wildcard. Which means the file can have anything in the name, as long as it ends with whatever is in the speechmarks after the * character. So if you wanted, you could remove the * and have a filename in the git track command and just track a specific file. Git LFS is a must for Github projects that a have or are expected to have files over 100 mb in size. Setting up Git LFS for a github repo requires you to tell Git LFS which files you want it to track. After that you need to push the gitattributes file as it stores the information on what files are being tracked by git LFS. If you already have files pushed up that are of the type you want to track with git LFS, you need to migrate all files of the types you want to track with git LFS. Warning! This will impact all repos and anyone who tries to work with the repo will have issues if they don't have Git LFS setup. Once you do the migration you need to force push the change up to the gitbub repository. Thanks for watching this tutorial on setting up git lfs for a github project. If you found this tutorial on how to setup Git LFS helpful, then be sure to subscribe to keep notified when I upload. How to Setup Git LFS for New and Existing Projects (Works With Unity) This git LFS tutorial should help answer the following questions: How to setup git lfs How to upload big files to github How To setup Git with Git LFS for Unity How to push your large file to github How to Upload Large Files (over 100Mb) to Github Introducing and Setting up Git LFS (Large File Storage) How to Upload Large Files to GitHub with Git LFS How to upload large file on Github Git LFS How to install git lfs How to setup git lfs How to use git lfs with Unity How To setup Git with Git LFS for Unity How to upload big files to a git repo How to push Unreal Engine 5 Large File Storage to GitHub How to upload files bigger than 100mb to github How to push files bigger than 100mb to github How to add git lfs to a project How to add git lfs to an existing project How to add git lfs to a new project How to add git lfs to a unity game How to add git lfs to a unity project

You May Also Like

DIY String Art Must-Haves

AI-recommended products based on this video

Loading...
Friendship Bracelet Making Kit for Girls - Crafts for Girl - String Bracelets Maker Craft - Gifts for 8-12 Year Old Kid - Birthday Gift Ideas & Kits Toys Ages 8, 9, 10, 11, 12 - Kid Age 8-12 Olds

Friendship Bracelet Making Kit for Girls - Crafts for Girl - String Bracelets Maker Craft - Gifts for 8-12 Year Old Kid - Birthday Gift Ideas & Kits Toys Ages 8, 9, 10, 11, 12 - Kid Age 8-12 Olds

(722)
$16.99$14.44
FREE delivery Sat, Jun 14 on your first order
400+ bought in past month
Loading...
Dxyue 4Pcs C2-2 String Trimmer Spools Line for Stihl Autocut 2-2 FSA 56, Replacement Part Number 4008 710 4302

Dxyue 4Pcs C2-2 String Trimmer Spools Line for Stihl Autocut 2-2 FSA 56, Replacement Part Number 4008 710 4302

(8)
$26.99
FREE delivery Sun, Aug 10 on your first order
50+ bought in past month
Loading...
Dxyue 4Pcs C2-2 String Trimmer Spools Line for Stihl Autocut 2-2 FSA 56, Replacement Part Number 4008 710 4302

Dxyue 4Pcs C2-2 String Trimmer Spools Line for Stihl Autocut 2-2 FSA 56, Replacement Part Number 4008 710 4302

(8)
$26.99
FREE delivery Sun, Aug 10 on your first order
50+ bought in past month
Loading...
Portable Garden Stool Lightweight Sturdy Seat for Outdoor Activities for Fishing

Portable Garden Stool Lightweight Sturdy Seat for Outdoor Activities for Fishing

(0)
$17.75
FREE delivery Aug 19 - Sep 2
Loading...
BOOJO 3 Pack Long Sleeve Shirts for Men - Quick Dry Moisture Wicking Sun Protection UV UPF T-Shirts for Fishing Workout Gym

BOOJO 3 Pack Long Sleeve Shirts for Men - Quick Dry Moisture Wicking Sun Protection UV UPF T-Shirts for Fishing Workout Gym

(194)
$28.99
Prime
200+ bought in past month
Loading...
CE' CERDR Men's Long Sleeve Tee Shirt Quick Dry Tshirt - Moisture Wicking Shirt Sun Protection T-Shirt for Fishing Hiking

CE' CERDR Men's Long Sleeve Tee Shirt Quick Dry Tshirt - Moisture Wicking Shirt Sun Protection T-Shirt for Fishing Hiking

(2,919)
$39.99
Prime
100+ bought in past month
Loading...
Fathers Day Dad Gift Idea,16-in-1 EDC Multi Tool with Pocket Knife, Foldable Utility Knife Multitool with Safety Locking, Needle Nose Pliers and Wire Stripper Tools, Gifts for Dad, Fishing, Camping

Fathers Day Dad Gift Idea,16-in-1 EDC Multi Tool with Pocket Knife, Foldable Utility Knife Multitool with Safety Locking, Needle Nose Pliers and Wire Stripper Tools, Gifts for Dad, Fishing, Camping

(3)
$49.99
FREE delivery Thu, Jun 19
Loading...
uxcell Brad Point Drill Bits for Wood 10mm x 68mm Right Turning Carbide for Woodworking Carpentry Drilling Tool

uxcell Brad Point Drill Bits for Wood 10mm x 68mm Right Turning Carbide for Woodworking Carpentry Drilling Tool

(199)
$10.36
FREE delivery Sat, Jun 14 on your first order
Loading...
LaLaGreen Wood Planter Box for Plants (6 Pack, 4x4 Inch) Small Square Wooden Wall Planters for Indoor Plant, Hanging Window Flower Boxes Herb Planter Table Centerpiece Modern Home Garden Office Decor

LaLaGreen Wood Planter Box for Plants (6 Pack, 4x4 Inch) Small Square Wooden Wall Planters for Indoor Plant, Hanging Window Flower Boxes Herb Planter Table Centerpiece Modern Home Garden Office Decor

(80)
$29.99
FREE delivery Sat, Jun 14 on your first order
Loading...
Standing Perch, Warm Tent Bed with Wood Stand, Hanging Plush Hammock for Birds with Colorful Appearance, Ideal for Parrots, Small Conures

Standing Perch, Warm Tent Bed with Wood Stand, Hanging Plush Hammock for Birds with Colorful Appearance, Ideal for Parrots, Small Conures

(0)
$9.69
FREE delivery Jun 20 - Jul 4
Loading...
WOA WOA 4 Step Ladder, Ladders for Home, Anti-Slip Pedals, Aluminum Step Stool Foldable, Lightweight to Move, Ease of Storage, Reach 9ft for Closet Kitchen Library, Hold 300lbs - Wood Grain

WOA WOA 4 Step Ladder, Ladders for Home, Anti-Slip Pedals, Aluminum Step Stool Foldable, Lightweight to Move, Ease of Storage, Reach 9ft for Closet Kitchen Library, Hold 300lbs - Wood Grain

(49)
$292.05$291.80
FREE delivery Jun 30 - Jul 3Only 10 left in stock.
Loading...
Dxyue 4Pcs C2-2 String Trimmer Spools Line for Stihl Autocut 2-2 FSA 56, Replacement Part Number 4008 710 4302

Dxyue 4Pcs C2-2 String Trimmer Spools Line for Stihl Autocut 2-2 FSA 56, Replacement Part Number 4008 710 4302

(8)
$26.99
FREE delivery Sun, Aug 10 on your first order
50+ bought in past month
Loading...
Sunrad Foil Art Kit for Kids Unicorns & Princesses Arts and Crafts, No Mess Art for Kids, Fun Craft Kits & Supplies, DIY Creative Activities, Travel Toys Gifts for Girls & Boys Ages 4 5 6 7 8 9+

Sunrad Foil Art Kit for Kids Unicorns & Princesses Arts and Crafts, No Mess Art for Kids, Fun Craft Kits & Supplies, DIY Creative Activities, Travel Toys Gifts for Girls & Boys Ages 4 5 6 7 8 9+

(162)
$23.99$19.72
FREE delivery Sat, Jun 14 on your first order
100+ bought in past month
Loading...
Paint Your Own Moon Lamp Kit, DIY 3D Moon Night Light with Space Figurines & Wooden Stand, Art Supplies Creativity Arts & Crafts Kit for Kids, Toys Girls Boy Birthday Easter Gift Ages 3 4 5 6 7 8 9 10 11 12+

Paint Your Own Moon Lamp Kit, DIY 3D Moon Night Light with Space Figurines & Wooden Stand, Art Supplies Creativity Arts & Crafts Kit for Kids, Toys Girls Boy Birthday Easter Gift Ages 3 4 5 6 7 8 9 10 11 12+

(2,309)
$19.99
FREE delivery Sat, Jun 14 on your first order
400+ bought in past month
Loading...
Dxyue 4Pcs C2-2 String Trimmer Spools Line for Stihl Autocut 2-2 FSA 56, Replacement Part Number 4008 710 4302

Dxyue 4Pcs C2-2 String Trimmer Spools Line for Stihl Autocut 2-2 FSA 56, Replacement Part Number 4008 710 4302

(8)
$26.99
FREE delivery Sun, Aug 10 on your first order
50+ bought in past month
Loading...
Dxyue 4Pcs C2-2 String Trimmer Spools Line for Stihl Autocut 2-2 FSA 56, Replacement Part Number 4008 710 4302

Dxyue 4Pcs C2-2 String Trimmer Spools Line for Stihl Autocut 2-2 FSA 56, Replacement Part Number 4008 710 4302

(8)
$26.99
FREE delivery Sun, Aug 10 on your first order
50+ bought in past month
Loading...
Dxyue 4Pcs C2-2 String Trimmer Spools Line for Stihl Autocut 2-2 FSA 56, Replacement Part Number 4008 710 4302

Dxyue 4Pcs C2-2 String Trimmer Spools Line for Stihl Autocut 2-2 FSA 56, Replacement Part Number 4008 710 4302

(8)
$26.99
FREE delivery Sun, Aug 10 on your first order
50+ bought in past month