Scripts get -master at the end

Hey community of FiveM, I’m new to scripting, but I’m trying to learn to script and create my own server, but I’ve ran into a lot of problems so to speak.

I’ve searched for solutions, but don’t find anyone having the similar problem. When I download ZIP Files from Github the folders get renamed and get a “-master” at the end of the name. I am still able to put it the server.cfg and the script works fine, but I’m just curious why they get renamed.

Ask as many questions as you want and I’ll try to answer them all, Thanks!

@cipon You can just remove the ‘-master’ and it will work fine.

That’s because you’re technically not supposed to download git repositories like that.

Install git on your machine and use git clone <link to .git>

“master” indicates the git branch that you downloaded which is the main branch. I highly suggest you read about git and look at YouTube videos about it. It’s a must if you ever have any aspirations for a career in IT

1 Like

Okay thanks!

Alright, thanks for the fast answer. Will look into it!