Thanks a lot! I followed a other tutorial where I got like 16k files to commit. I'm glad this one has only 28 to commit.
@GarnetKane7 ай бұрын
Amazing! So glad to help - yeah I found a few tutorials on this topic actually didn't cover it accurately and it didn't recognise the git ignores correctly!
@leonardocattaneo883412 күн бұрын
by far the best git lfs for unity tutorial I have found so far
@GarnetKane7 күн бұрын
Appreciate it! I’m really glad you found it useful!!
@juanmuniz65353 ай бұрын
Dude this was awesome. So easy and effective! Great video.
@GarnetKane3 ай бұрын
Appreciate it! glad i could help :)
@jhonuribe1717 ай бұрын
tnhks bro! Easyyyyy xD, Greetings from Colombia - Cali
@countotuscany70618 ай бұрын
So are you pushing everything onto GitHub? Including binaries, assets, textures, sounds, models etc?
@GarnetKane8 ай бұрын
Yep definitely - i could be wrong but I think from the git ignore, binary files are ignored, but definitely the rest of them you want to push up. Any file that appears in your Github Desktop Application you want to push up (assuming you want to keep those changes)
@Yukiixs10 ай бұрын
I was thinking that you were going to cover Ci/cd as well, unity recently disabled activation of the personal editor inside docker container, which makes CI/CD really harder to setup for free projects ( in order to promote their own solutions ). Ci/cd allows to automatically build the game, test it, publish it, make static analysis of the code for styling, security,.. rules and opens issues for you… a must have in teams projects
@noway1co4 ай бұрын
why not just create the unity project inside the git folder intially?
@RKelly6948 ай бұрын
Hey, this was a brilliant tutorial that worked for me so thank you!!! Just a quick one, i added some code in one of the scripts, then when i look in my repository of the git deskop it didn't show any changes that i can commit? Any advice on what to do. Again, thanks for the brilliant tutorial, i followed a few but none were even close to this!
@GarnetKane8 ай бұрын
Hey! Interesting; the only thing I could think is that the scripts/assets folder wasn't copied over? Otherwise just ensuring the script is saved would be the other obvious answer? Let me know if you still have this problem or if you've got a work around, would be interested in hearing what happened!
@RKelly6948 ай бұрын
@@GarnetKane so what’s happened was after installing git, I had placed the .gitignore file in the wrong folder. After moving it to the folder containing the unity project files, it started to work!! Also, thank you for getting back to me about the question. I do appreciate it. And I’m still going through your unity project tutorial, it truly is brilliant!!
@ryanwinchy8 ай бұрын
Hey Garnet! Version control for game dev has been something I've been struggling with for a while. The files are just so big and my .gitignore seems to never work. I'm trying to use Github LFS now. Is it good practice to VC the project as a whole with all assets, or just the scripts? Just scripts would be a whole lot easier lol!
@GarnetKane8 ай бұрын
Definitely would be easy to just have the scripts but it's definitely recommended to do the whole project unfortunately! There's heaps of meta files that would be required and just doing the scripts would probably result in a bunch of conflicts
@ryanwinchy8 ай бұрын
@@GarnetKane thanks, I got it in the end! I just had to figure out LFS :)
@AbdoWahib-k4f2 ай бұрын
nice tutorial!!. just try out to display the texts a bit bigger, they are so tiny. Maybe cause u are using a monitor, it's clear for ya, but for us laptop users, it's really hard to see! thanks!
@GarnetKane2 ай бұрын
Oooh - really appreciate the suggestion! Will definitely make sure to do that for the next one! Glad you enjoyed the tutorial otherwise :D
@duhanavc67737 ай бұрын
Thak you for explanation. How often should we push? I am begginer so I dont know I dont wanna push any small change I made
@GarnetKane6 ай бұрын
Hey! Good question - I would say, conventionally when you’re working in a studio, you will always push what you’re working on at the end of the day to ensure you don’t lose progress. But on top of that, whenever you’re working on a new feature/piece of content that you think is ready to push before you start working on something else, then would be a good time to push up the changes as well.
@duhanavc67736 ай бұрын
Thanks. I think I got it. I am afradit that if I push so many times it will look bad and bulky in github but I think no need to worry about it
@GarnetKane6 ай бұрын
@@duhanavc6773 oh yeah for sure! Don't worry about cluttering up the github commit history at all - it would definitely even be considered better so that issue tracking becomes a lot easier!
@Shergon_41k27 күн бұрын
Thank U, man
@GarnetKane26 күн бұрын
I gotchu homie 🫶
@hermitcat3324 ай бұрын
Holyfuck this is all I needed
@GarnetKane4 ай бұрын
Glad it was helpful! Honestly surprised that there wasn't a better tutorial already existing or one that was as straight forward hahaha
@MM-wr2kj7 ай бұрын
thank you
@zojirushi1Ай бұрын
how do you get others to collaborate in the same unity repo/project for a team of 4 people?
@GarnetKaneАй бұрын
Hey! It would be the exact same setup - but everyone would have access to the main repository as a collaborator so that they can branch off from main/commit to main or their own branch and it’ll get synced across everyone in the project
@Iamjake10004 ай бұрын
This is good, but if your project gets big enough don't you have to pay? How can I just run this locally? Was using unity's version control but I can see that bill becoming huge quick..
@GarnetKane4 ай бұрын
Hey! There’s definitely a paid aspect of github, and github itself recommends projects that are between 1-5gb, but depending on what your purpose is, you’d rarely be going over that limit anyway. Using the git ignore definitely helps as well as it removes unnecessary storage/files that could clutter up the repo. I’ve been using github for all my personal projects for the last 5+ years, all ranging in sizes but i’ve never come across anything where the project files were too much for Github to handle - all on the free tier as well!
@Iamjake10004 ай бұрын
@@GarnetKane thank you, I'll give it a try with the project that was giving me issues with unitys version control
@HailScreaM778 ай бұрын
this does not work for us, i was making test with a colleague on how to use it, but no changes to the hierarchy is reflected on the other machines. The closest we get was trying saving scenes and loading onto hierarchy after pulling latest changes, it manage to somehow work for the first time , but not with additional changes.
@GarnetKane8 ай бұрын
Hey - unfortunately the way github/version control works is you won’t be able to work simultaneously on a branch without one end pushing it up and the other end pulling in the changes
@HailScreaM778 ай бұрын
@@GarnetKane i don't think I've understand you, but of course the changes were pushed before being pulled, we know how to use git plz, we test with branches too, we will test again later
@HailScreaM778 ай бұрын
it work if you activate LFS, and close unity every time you add, push and pull changes , otherwise Unity will not let git do it job.
@josemartins-game5 ай бұрын
Unity does not work well with Git. I keep losing references to materials or textures just by switching branches, opening and closing the project without touching anything.
@fizcore38066 ай бұрын
Will this sync to my mobile GitHub app?
@GarnetKane6 ай бұрын
Hey! Should do no problems - as long as you’re using the same github account on your mobile as your desktop!
@tommallama966310 ай бұрын
I was a big fan of using Github but I didn't like that if I had a conflict, my only option was to stash my changes. Maybe there is a solution using Gitbash or something, but the Github Client doesn't seem to have a good solution for dealing with conflicts.
@TheGekko5 ай бұрын
In case anyone is still following this guide... Github is case sensitive and unity refuses to work with Unity "just like that".
@hhattonaom97299 ай бұрын
i don't get it.
@GarnetKane9 ай бұрын
Ahh damn- what part of it are you having trouble with?