Shopping Cart
FiveM script 11abac85b780a6bfb422bb414511bacab31e72a7

[Tutorial] Using Git LFS with FiveM resources – Server Tutorials


This is a quick tutorial on how to properly leverage the power of Git LFS when you have a git repository with FiveM server resources. If you’re using git, but not LFS (yikes), I urge you to try it out.


First, make sure that your working directory is clear so you don’t accidentally commit anything you don’t mean to.

Next, you will need to modify / append these settings to the .gitattributes file in your project root.
If you don’t have this file yet, create it with the following contents:

.gitattributes

# FiveM assets
*.yft filter=lfs diff=lfs merge=lfs -text
*.ytd filter=lfs diff=lfs merge=lfs -text
*.ymap filter=lfs diff=lfs merge=lfs -text
*.ydr filter=lfs diff=lfs merge=lfs -text
*.ybn filter=lfs diff=lfs merge=lfs -text
*.ymf filter=lfs diff=lfs merge=lfs -text
*.ydd filter=lfs diff=lfs merge=lfs -text
*.ytyp filter=lfs diff=lfs merge=lfs -text
*.rpf filter=lfs diff=lfs merge=lfs -text

# native binaries
*.dll filter=lfs diff=lfs merge=lfs -text
*.so filter=lfs diff=lfs merge=lfs -text

# fonts
*.eot filter=lfs diff=lfs merge=lfs -text
*.ttf filter=lfs diff=lfs merge=lfs -text
*.woff filter=lfs diff=lfs merge=lfs -text
*.woff2 filter=lfs diff=lfs merge=lfs -text

At this point all you should need to do is:

git add .

Git will automatically index your files, find any matching extensions, and mark them as changed, ready to be committed to your Git repo using LFS. The initial push may take a long time if you have a lot of resources.

That’s it folks.



Premium ESX Scripts? Click here!

Leave a Reply

Your email address will not be published. Required fields are marked *

FiveM ESX Scripts

The best scripts and maps

Best support

Problems? We are there to help!

Wide range of products

We have a wide range of products

100% Secure Checkout

Stripe

About

Are you creating a FiveM server? Here are the best scripts for it – for a cheap price and a very good quality! Don’t waste time testing and fixing free scripts. Use our premium FiveM scripts.

ESX Scripts is a Network for FiveM Scripts | FiveM Store | FiveM Mods | FiveM Scripts | FiveM EUP | FiveM Cheats | FiveM AntiCheats | FiveM Vehicles | FiveM Cars | FiveM Maps | FiveM Discord | FiveM Clothes | FiveM Launcher | FiveM Servers | FiveM.NeT | FiveM | FiveM RP | FiveM RolePlay | FiveM USA | FiveM Europe | FiveM EU | gta5 store | GTA Role Play | GTA RP | GTA RP | FiveM Asia | FiveM World | FiveM GTA | fivem-store.com | FiveM Tools FiveM Hosting | FiveM Shop | CitizenFX Collective | FiveM CFX, ESX Scripts A global network that aims to strengthen fivem.net roleplay servers. And it’s just to improve the quality of the servers.  We hope we can get your opinion just to improve the quality of your server. You can get maps, vehicles, scripts, eup, tools, etc… right on our shop website!

Help

Need help with a product? Our sellers offer good support. Free for you! Click here to get help.

Are you a creator?

We are looking for people that want to sell their scripts and maps (of FiveM) in our store. Click here to register and sell.

Weekend-Sale
Only this weekend
x