How to use GitHub with Unity

Поделиться
HTML-код
  • Опубликовано: 3 дек 2024

Комментарии • 581

  • @viola_case
    @viola_case 3 года назад +623

    In the project settings, version control is its own tab now, separate from the Editor tab. Hope this helps anyone watching after today!

    • @Hubxrt
      @Hubxrt 3 года назад +6

      Ahhhh thanks dude i searched so lond for this

    • @zacharywalker-liang7319
      @zacharywalker-liang7319 3 года назад +4

      Thank goodness, jeez..... Thank you so much

    • @HDbacon
      @HDbacon 3 года назад +2

      Thanks!

    • @Mikelica69
      @Mikelica69 3 года назад +3

      Ur a god.

    • @rafarodriguez4765
      @rafarodriguez4765 2 года назад +1

      In what unity version? In mine 2019lts is the same as the video

  • @TimothyNazar
    @TimothyNazar 7 лет назад +501

    Start watching at 4:35 if you're already know what is git and just want to know about Unity specific settings.

    • @seasons8bit
      @seasons8bit 6 лет назад +2

      thanks!

    • @wheeler2137
      @wheeler2137 6 лет назад +11

      thank you for saving 4 minutes of my life :)

    • @lucastorres6703
      @lucastorres6703 5 лет назад +6

      @@wheeler2137 You lost the same time with the comment hahaha

    • @HappyHitman
      @HappyHitman 5 лет назад

      Thank you

    • @BurtBot
      @BurtBot 5 лет назад +16

      Don't forget your Unity .gitignore file at 1:46, though!

  • @99ZULU
    @99ZULU 3 года назад +224

    I love how almost 4 years later this video is still helpful.

  • @manuelmeekattukulam
    @manuelmeekattukulam Месяц назад +3

    After 7 years I still come back to this video when I start a new project. Donno, It feels good to see Brackys face when I start a project. Brings back good memories

  • @krissloo143
    @krissloo143 3 года назад +17

    It's 2021 and Brackeys is still saving lives..

  • @keiranglynn2318
    @keiranglynn2318 6 лет назад +50

    Thank you so much. I was a part of a game design club at my college and we had so many problems because our repo/ version control had not been set up properly from the start. Now that i'm starting my own side project, i'm really glad to have tutorials like yours that outline the process so well. Thank you for sharing the knowledge.

    • @katattack707
      @katattack707 5 лет назад +3

      ha same, we were taught to use SourceTree/Bitbucket/Atlassian (and that's all for one version control!!!) but I'm trying to learn better xD

  • @antoinemaes
    @antoinemaes 2 года назад +6

    Even 5 years later this is still the best tutorial about the topic I could find... and it was exactly what I needed ! Thanks !

    • @AbdulazizAlmawash
      @AbdulazizAlmawash 2 года назад +1

      sorry but I saw u just commented and i wanted to take this chance and ask.. does git act like a 'cloud' type storage for projects so i can in anytime download my latest progress if for instance i reset my PC, got a new one, etc?/ or i misunderstood it? thx..

    • @akirasyco1115
      @akirasyco1115 2 года назад

      @@AbdulazizAlmawash Yes, it is an cloud repository

  • @kevinsens63
    @kevinsens63 4 года назад +8

    It's still funny how I quickly come back to this video for every new project. Congrats with 1+ million subs, you deserve it!

  • @reversible8740
    @reversible8740 7 лет назад +138

    This is a video i have been wanting for soooooo long!!! Thanks Brackeys.

    • @limepug5631
      @limepug5631 6 лет назад +2

      I agree Brackeys always makes everything so simple and great
      :)

  • @tarkhusny1075
    @tarkhusny1075 Год назад +1

    Years later, i just started using unity again, and it's nice to see you again :)

  • @anshuvennamenani
    @anshuvennamenani 8 месяцев назад +1

    watched it after 6 whole year and it still does it job, crazy to think, deserves a subscriber.

  • @PixelDough
    @PixelDough 7 лет назад +19

    Never used github, always thought learning the commands would be too confusing... This is one of the most helpful videos I've ever seen in my life! THANK YOU!

  • @KhrisKruel
    @KhrisKruel 4 года назад +5

    Thank you so much for this. Every github tutorial I've tried has always assumed you knew some high level vernacular of coding.

  • @creatorreda2379
    @creatorreda2379 5 лет назад +4

    GitHub has mystified me for many moons. Thank you for that brief and straight forward explanation

  • @FM_GOBi
    @FM_GOBi 2 года назад +1

    Man, his channel is still the best source of information.

  • @char317
    @char317 6 лет назад +1

    Everytime I type some question in about Unity or Programming, Brackeys got my back. I did not expect to find a video about using GitHub with Unity, but aayyyyy, here it is. Thanks man!

  • @Auxified
    @Auxified 2 года назад +1

    thanks for the gitignore went from 20700 files to 300. Brackeys is the man.

  • @alexanderfull1
    @alexanderfull1 Год назад +1

    Took me nearly a full days work and all of my pride before I found this video explaining that gitignore doesn't function properly, I'm elated and fustrated at the same time. But I must say, I'm eternally greatful for the vid!

  • @Yukiloop
    @Yukiloop 3 года назад +2

    Thank you. This video was way more helpful than my teacher. The teacher knew what he was doing but he didn't explain it very well.

  • @jakechristensen8967
    @jakechristensen8967 Год назад

    You are a legend!!!! you helped me through trade school and now your videos are helping me through college!

  • @NesrocksGamingVideos
    @NesrocksGamingVideos 3 года назад +1

    This is the best VCS tutorial for Unity in 2021

  • @lilpiggie7095
    @lilpiggie7095 3 года назад +1

    You literally have a video for every question I've had. I love your channel.

  • @renatodex
    @renatodex 2 года назад +9

    Just a correction:
    At 5:49, when he says "a lot of these files are actually Metafiles", what he meant is that folders like Library/, Logs/ and UserSettings/ are recreated for every person using Unity, are based on local configuration and therefore are not required include in your versioning system.

    • @raeestheviewer224
      @raeestheviewer224 Год назад

      but when I uploaded it to github and downloaded it again the scene was empty. It was only when I added by old assets and library folder that I got my project back. Is there a way to get your project back without having your library there?

    • @alejandroriverosjaeger59
      @alejandroriverosjaeger59 Год назад

      Thank you. You have explained me a lot!

    • @aliyapro7895
      @aliyapro7895 10 месяцев назад

      @@raeestheviewer224 @renatodex I'm also interested in this questions answer. Are really all of the metafiles that trivial? If the slashes infront of the gitignore things are not useful why did they not get deleted in updates of the gitignore list?

  • @Elixisty
    @Elixisty 7 лет назад +13

    I love all of your videos, they're simple and straight to the point :3

  • @codinginflow
    @codinginflow 3 года назад +6

    You can also create the repo from right inside Github Desktop

  • @84713
    @84713 2 года назад +2

    This dude quit RUclips and is still teaching me.

  • @jeniferirwin
    @jeniferirwin 4 года назад +3

    4:21 I knew that Brackeys's 'projects' folder probably had a lot of stuff in it, but I still wasn't prepared for that massive list!

  • @danylohavryliv7748
    @danylohavryliv7748 7 лет назад +4

    I am so happy, when I see a new video on Brackeys channel. Thank you!

  • @alexandrsemenov1842
    @alexandrsemenov1842 6 лет назад +2

    Perfect clean explanation on how to setup and use git... finally someone actually made me do it. Great job!

  • @loosedwhale
    @loosedwhale Год назад

    This is a old video still works, thank you so much, the gitignore edit changed the amount of files from 25k!!! to 49! thank you so much for this

  • @blake2716
    @blake2716 2 года назад

    thanks man, I couldn't commit my project because my metafile wasn't working but the bit at 5:50 helped me fix it

  • @yanzeli9670
    @yanzeli9670 2 года назад

    A 5-year-old video beat the s***t out of those "new" videos. What a legend!

  • @Metalvain4
    @Metalvain4 2 года назад

    Was going to try this by myself but I wouldn't have thought to look for the Unity gitignore template. Just what I needed, thank you!!

  • @kingreinhold9905
    @kingreinhold9905 7 лет назад +13

    you are the best teacher I have ever met :0

  • @todorus
    @todorus 4 года назад +7

    A .gitignore doesn't have to be in the project root, it can be anywhere in the repo, and you can have multiple. Just put the .gitignore for the Unity project in the project folder

  • @gerritfellisch4309
    @gerritfellisch4309 6 лет назад

    I just held a GamesJam and we had so many problems with the meta files. Now I know why. Thank you so much!!

  • @udensmc5216
    @udensmc5216 2 года назад +4

    Its so cool that it only saves the changes, and not the whole project! that means multiple people can work on diffrent parts of the project without deleting/changing the progress of the other people!
    Thanks for the AMAZING tutorial!

  • @3ustin
    @3ustin Год назад +1

    brackeys is OP even 5 years later.

  • @fulgencejuniorlohore854
    @fulgencejuniorlohore854 Год назад +1

    2023 and still relevant! This is amazing!

  • @GiboonCloudSmoker
    @GiboonCloudSmoker 4 года назад

    I've been looking for the tutorial on google yesterday and finally found it here, thanks Brackeys!!

  • @kaedeharakazuha2003
    @kaedeharakazuha2003 3 года назад

    Brackeys is still the best RUclipsr for Unity tutorial

  • @extrastuffboxofaksakl1k354
    @extrastuffboxofaksakl1k354 2 года назад +1

    I really suprised how he can explain this simple. Nice tutorial like always.

  • @nielsmittertreiner4214
    @nielsmittertreiner4214 7 лет назад

    I like how you pronounced Heemskerk, it is a Dutch name and hard to pronounce for non-Dutch speakers. Still you managed to make me clearly understand the word. You're not only good in developing games but also pronouncing unknown names!

  • @SaadTahirVelocity7
    @SaadTahirVelocity7 6 лет назад

    Man you saved my life. I was learning the Github bash and its really complicated. But YOU ARE THE MAN!

  • @owengaunt5537
    @owengaunt5537 4 года назад

    Thank you, you saved my sanity. Btw hopefully you still sometimes check your RUclips videos. I’m happy that you decided to do what you really wanted

  • @arescaelum9251
    @arescaelum9251 7 лет назад +24

    "Descriptions: a test repository for an imaginary game... I need friends." haha I'll be your friend xD

  • @viola_case
    @viola_case 3 года назад +1

    With this tutorial I can actually get a team together to work on projects!

  • @dashadventure9952
    @dashadventure9952 Год назад

    This video was(and still is) a life saver
    Thx Brackeys

  • @sorenkowalski7695
    @sorenkowalski7695 4 года назад

    Miss you Brackeys! :(

  • @calvindewolff9177
    @calvindewolff9177 7 лет назад +1

    Thank You SO SO MUCH!!! I'm trying to collaberate with my friend for 2 months but still didn't succeeded but now, thanks to you we can build our game! Thank You Freaking much!

  • @BlenderKiel97
    @BlenderKiel97 7 лет назад

    Yesterday I was looking for good tutorial about using Git with Unity. Today seeing your tutorial made me very content as I know your tutorial are very good. Thank you! :)

  • @TheHotdogstand
    @TheHotdogstand 3 года назад +2

    very clear and said in a way that doesn't waste my time! Great Tutorial!!!

  • @maximuschapman7760
    @maximuschapman7760 10 месяцев назад

    the legend is still helping

  • @Storm1088
    @Storm1088 4 года назад +1

    Чувак, я тебя просто люблю!)) Ты просто лучший учитель в мире, спасибо что делишься бесценной информацией!!)))

  • @saulopereira1653
    @saulopereira1653 7 лет назад +2

    "I need friends" hahaha... know that in Brazil you there are one friend. I lot a learn with you! Thanks bro!.

    • @sHorz
      @sHorz 4 года назад

      Mesmo nome que eu e um admirador do brackeys, é gente fina com certeza

  • @SasukeUchiha723
    @SasukeUchiha723 7 лет назад

    You've Just saved my life with the torture I face everyday in the studio due to github (or someone) removing my files and getting corrupted or disappearing. Now I understood what to do... Thank you!

    • @tgsoon2002
      @tgsoon2002 6 лет назад

      If it on github then you can always check history for it. Also make your own branch .

  • @Noss454
    @Noss454 3 года назад +1

    I miss you man.

  • @kiriakostriadafillidis2400
    @kiriakostriadafillidis2400 5 лет назад +6

    i literally love you, you have saved me so many times! have a nice one

  • @MinerManDouglas
    @MinerManDouglas 3 года назад +1

    So helpful! I had a problem with my game when I was on Udemy and this helped a lot! Thanks for the help!

  • @dr.mailman
    @dr.mailman 5 лет назад

    The best and clearest rundown of how version control works with unity I have ever seen.

  • @kayumiy
    @kayumiy 4 года назад

    Fast, clear and short explanation. Thank You.

  • @GamezTUBER
    @GamezTUBER 6 лет назад

    You are my favorite youtuber by a margin. Thank you so much!

  • @caseyco21707
    @caseyco21707 2 года назад

    This video helps a lot, even now in 2022.

  • @ahmetsamicemek4809
    @ahmetsamicemek4809 3 года назад

    I have been trying to do this for a while and your video helped me a lot. Thank you so much!

  • @HasanVurucu
    @HasanVurucu 4 года назад

    The gitignore file made my day, thanks so much

  • @andrewdeick48
    @andrewdeick48 4 года назад

    Finally found out how to fix Unity GitIgnore. Thank you so much

  • @quickscopesheep5994
    @quickscopesheep5994 4 года назад

    Although I won’t use this with unity this video really helped me with GitHub

  • @hurtadito08
    @hurtadito08 3 года назад

    Missing this man

  • @GemTappX
    @GemTappX Год назад

    I found this channel days before the "GOOD BYE" video. Sad to see you go!

  • @profzthecounterstrik
    @profzthecounterstrik 7 лет назад

    Nice, tutorial that i needed right now. And published on my birthday. I guess i'll treat this tuts as gift

  • @yeros404
    @yeros404 4 года назад

    So wholesome how happy he is.

  • @Dedinside-l7n
    @Dedinside-l7n 7 лет назад

    Yay thank you guy, you always record your video when I need it!!!

  • @andythayer5493
    @andythayer5493 6 лет назад

    Thanks so much for the video. I was having trouble with the .gitignore file in particular, and this really helped!

  • @coobbyo
    @coobbyo 3 года назад +3

    Honestly. I wish I had seen this video before starting my latest project XD

  • @paritybit_softwares
    @paritybit_softwares Год назад +1

    It was so sad to see you leave brother :(

  • @tacman1123
    @tacman1123 4 года назад

    Thanks for the tip to save assets with Force Text (which saves them as YAML) -- very helpful!

  • @MultiMarcsOfficialChannel
    @MultiMarcsOfficialChannel 7 лет назад +2

    Clicked so fast I almost made my own game without the help of brackeys!

  • @drtheodor
    @drtheodor 3 года назад +2

    Thanks Brackeys!

  • @masterchief7746
    @masterchief7746 Год назад

    thanks, the part where you are explaining the git ignore is priceless.

  • @eliotcowley
    @eliotcowley 7 лет назад +2

    Thank you for the better .gitignore! I always wondered why the default one was leaving in so much garbage

    • @tgsoon2002
      @tgsoon2002 6 лет назад

      Personaly. I keep the asset and project setting folder right in the there instead of a folder inside the repo.

  • @superrroelant
    @superrroelant 3 года назад

    you deserve 10 million subs u helped me so much

  • @mattgreen753
    @mattgreen753 6 лет назад

    This video is exactly what I was looking for. Thanks man!

  • @mustafakurt8878
    @mustafakurt8878 3 года назад +1

    Thanks for everything

  • @HrPaschulke1337
    @HrPaschulke1337 4 года назад

    Plain and simple, as always. Thank you very much!

  • @fakawl
    @fakawl Год назад

    thank this help me a lot to move the proyect one pc to another, ty dude!

  • @sickre
    @sickre 7 лет назад +3

    Nice video. Could you do a second one with best practices on how to manage large files eg. 3d models? You don't want them updating all the time and taking up lots of space. Some users use a separate hub for those big files?

  • @collinl.179
    @collinl.179 2 года назад +3

    How do I get visual studio to work with my local and remote repositories? It asks me to add version control and when i click to add , it's only offering to add. Also as it turns out my working project root is different from my local repo. One option would be to manually make commits.. and somehow turn off the offer to version control in VS. Or maybe I will start over and make my root of the project in the local repo.

  • @senderista7365
    @senderista7365 2 месяца назад +2

    I'm not gay but I feel gay with this guy

    • @dnv091
      @dnv091 Месяц назад

      🤨

  • @mrzaphkielYT
    @mrzaphkielYT 4 месяца назад

    If i understand correctly at 1:27 if you choose free plan then anyone can see and pull your work but can't make changes to it, but they can still stole it?

  • @reillylawson978
    @reillylawson978 9 месяцев назад

    You are a life saver even in 2024

  • @accumulator4825
    @accumulator4825 7 лет назад +1

    Thanks a stack! Very useful and well presented video as usual 😃

  • @Totatix83
    @Totatix83 7 лет назад

    Such a good a video, version control is so important

  • @nurodev
    @nurodev 7 лет назад

    If Github Desktop isn't to anyone's fancy, I HIGHLY recommend Gitkraken.

  • @legituseractualperson7862
    @legituseractualperson7862 6 лет назад

    Thank you very much for your videos, the one you provide is such a valuable service!

  • @felipenunes8382
    @felipenunes8382 2 года назад

    Amazing video. Direct and easily understandable. Thank you very much.

  • @neuronumhu6719
    @neuronumhu6719 5 лет назад

    Thanks very much. Your videos are always concise and helpful!!

  • @telecomanda
    @telecomanda 4 года назад +5

    Brackeys' empty project: 164 changed files
    My project: 22517 changed files
    lmao

    • @CustardCream33
      @CustardCream33 4 года назад +1

      I was just wondering why mine says 3766 files, you made me feel a bit better at least haha

    • @telecomanda
      @telecomanda 4 года назад +1

      @@CustardCream33 haha. Well, bigger projects have a lot of files so it's completely fine.

    • @CustardCream33
      @CustardCream33 4 года назад

      @@telecomanda ah I see, I assumed you created a new project too and something went tragically wrong aha

    • @telecomanda
      @telecomanda 4 года назад +1

      @@CustardCream33 ah, no. I added my already existent project to GitHub (for backup and collaboration with my friend) so yeah, that's why it has a lot of files.

  • @PixelGM
    @PixelGM 3 года назад +1

    4:23 how does he make the folder list look like that?

  • @Arikitaru
    @Arikitaru 7 лет назад +4

    Side note for people using Unity and Blender. If you do what Brackeys did, but you're using filename.BLEND instead of filename.FBX - you are going to be the only one seeing the model, your teammates won't. We had a Blender file that had all assets for the level that I was using. When other people pulled the project, they could only see the character and one model (it was in FBX format). Took us couple of days, damn.

    • @Silverframe
      @Silverframe 7 лет назад +1

      is this because of his gitignore, or just a small bug in git? :-) Did you switch to using only fbx?

    • @The28studio
      @The28studio 6 лет назад +5

      That because your ppl need to have blender installed on their PCs .
      Unity open blender on the background to convert the model to fbx .

    • @BeerfootBandit
      @BeerfootBandit 6 лет назад +1

      Thanks for da help👍

  • @kaniebr
    @kaniebr 6 лет назад +2

    That's one nice and useful video!!
    Yet I have some questions: I'm working in a project that has quite a few downloaded assets from the Asset Store. Do I have to push them all to my repository? Isn't it possible to just push some kind of reference so that Unity knows what to download and import from the Asset Store when starting a cloned repo?