How to use GitHub with Unity - Beginner tutorial

🎁 Support me on Patreon: / cococode
This tutorial/guide will show you how to use Git with your Unity projects. Version control is a very popular tool among programmers that allows you to review code changes and easily backup your code to the cloud! One of the important aspects that I haven't covered in this video is collaboration that allows you to share code with multiple team members (or even the whole world) and easily work on the same project and files! - Video about that soon!
--------------------------------------------------------------------------------
🔗 LINKS IN THIS VIDEO:
Download Github desktop: desktop.github.com
--------------------------------------------------------------------------------
👨‍💻 SOCIALS:
💜 Join our Discord: / discord
🔵 Follow me on Twitter: / bionicl333
--------------------------------------------------------------------------------
🎓 YOU WILL LEARN:
- How to use Git
- How Git works
- What is Github
- How to upload code to Github
- How to use Github desktop
- How to use git on Mac/pc
- How to backup Unity project
- How to use git with Unity
--------------------------------------------------------------------------------
⚙️ VIDEO CHAPTERS:
0:00 - Intro
0:22 - How Git works
1:19 - Create repository
2:23 - First commit
4:03 - Making changes
4:58 - Pushing to GitHub
6:40 - Create repository on existing project
7:46 - Reverting changes
8:07 - Access your repository on different computer

Пікірлер: 53

  • @CocoCode
    @CocoCode2 жыл бұрын

    Video on Git/Github collaboration coming soon!

  • @peterlevens6096
    @peterlevens6096 Жыл бұрын

    Man, what a great video. This seemed like such a scary barrier for a while but you make it so clear. Glad my game is stored and safe now!

  • @galaxy-wy9sd
    @galaxy-wy9sd Жыл бұрын

    This is absolutely the most clear and concise introduction into GitHub with Unity on all of the internet. Thank you

  • @MatanNaveh
    @MatanNaveh Жыл бұрын

    Thanks for the help! That's a great tutorial that I always come back to.

  • @dupokus
    @dupokus Жыл бұрын

    Big thanks, big thanks, there are no such simple and clear videos on this.

  • @rameezraja6867
    @rameezraja68679 ай бұрын

    just the video i was searching for simple to follow and easy to understand

  • @MikeToth1
    @MikeToth12 жыл бұрын

    Amazing. The only tutorial which I needed. Maybe as a feedback. You should ad the Info that this tutorial is for Mac users. Because I almost skipped, but saw then by accident the mac desktop on the thumbnail. Yours is the only tutorial I found for Mac users :) Thank you so much

  • @tacticalmythic7945
    @tacticalmythic79452 жыл бұрын

    thanks. My dad told me to use this for me (a high school student for my code). Now I can finally get into it lol

  • @humadi2001
    @humadi2001 Жыл бұрын

    I already know how to use Git but wanted to enjoy the teaching style!

  • @PhiLudo
    @PhiLudo2 жыл бұрын

    Very good video! great and easy explanation. thank you

  • @enayathabibi337
    @enayathabibi3372 жыл бұрын

    Just love your videos, They are really hopeful keep up the good work.👍👍

  • @CocoCode

    @CocoCode

    2 жыл бұрын

    Thank you very much!

  • @svenlent3018
    @svenlent30182 жыл бұрын

    Thanks for ur explanation!

  • @cptwoody7103
    @cptwoody71032 жыл бұрын

    Keep watching your video coco 🥇

  • @ElBartoXSalgado
    @ElBartoXSalgado2 жыл бұрын

    Thanks for the video!

  • @justadev1744
    @justadev17442 жыл бұрын

    Amazing tutorial.

  • @coolsai
    @coolsai2 жыл бұрын

    Really awesome 🥰

  • @denn501
    @denn501 Жыл бұрын

    This is great!!!! tysm

  • @danielamareen7321
    @danielamareen7321 Жыл бұрын

    Wow, what a great explanation and way of explaining. I never truly understood Git it seems, and I realized it after watching this video. Thank you good sir. P.S. You deserve way more views and subscribers. I hope you can keep doing what you do.

  • @redinternet9893
    @redinternet9893 Жыл бұрын

    Amazing! How about switching branch and managing them.

  • @koro9868
    @koro98682 жыл бұрын

    I have a quick question. What files do I commit and what files do I ignore for unity? Basically what do I need?

  • @Jose_Aron_Antigos13
    @Jose_Aron_Antigos132 жыл бұрын

    Helo i am braziliam this video is so cool

  • @omerrudnick8195
    @omerrudnick81957 ай бұрын

    Great video! Does this mean I have to delete the old project?

  • @MickyMiniAdventures
    @MickyMiniAdventures Жыл бұрын

    How to resolve merge conflicts in the GitHub desktop when we commit to the main

  • @blamedetermined
    @blamedetermined2 жыл бұрын

    How about teams and collaborate? Is it better or worse? And how to ignore files on collaborate? 😅

  • @coolsai
    @coolsai2 жыл бұрын

    Thanks 👍🏻

  • @muhammedulviozkaya7128
    @muhammedulviozkaya71282 жыл бұрын

    I get 5k files despite i chose the unity selection for git ignore. What should i do? thank you

  • @rkpixeldesign
    @rkpixeldesign9 ай бұрын

    Good Job

  • @HoisinDuckWrap
    @HoisinDuckWrap Жыл бұрын

    Can i delete the github folder on my desktop? Like if i do that, will the stuff on online github be deleted too?

  • @trueblue97
    @trueblue972 жыл бұрын

    I'm new to all this, and what I find strange is that it seems as if there is no way to check an older version, without deleting every version after it. Like why cant I just swap out the various comits whenever I want to? Makes no sense in my eyes, then again I am a noob, so there maybe is a reason I'm not aware of...

  • @mikoaj8796
    @mikoaj87962 жыл бұрын

    Dzięki bardzo :)

  • @GeniusK
    @GeniusK Жыл бұрын

    great video

  • @SayedSafwan
    @SayedSafwan2 жыл бұрын

    WHAT!20 second Ago.Anyways Amazing and Wonderful video.i suggest an animation curve video Next time.

  • @CocoCode

    @CocoCode

    2 жыл бұрын

    🎉

  • @blacknwhite1313
    @blacknwhite131310 ай бұрын

    Thanks

  • @BombaIsCobalt
    @BombaIsCobalt19 күн бұрын

    How to fix it bc sometimes it just breaks

  • @JonelKingas
    @JonelKingas5 ай бұрын

    bruh, it says this project is not valid when trying to add it to unity from github folder -_-

  • @pgamer2579
    @pgamer25792 жыл бұрын

    Hello coconut code. Does. tutorial on how to login via metamask. thanks

  • @ignatiusreilly8280
    @ignatiusreilly82804 ай бұрын

    How do you deal with files over 100mb? It seems to break Github Desktop. After the 100mb LFS message, it shows me a long error report window - and then won't even commit!

  • @Hemson
    @Hemson2 жыл бұрын

    I have a question: How can I keep my unity projects folders organized, if I have to place my projects files in github? Should I create the Github repository folder (1:43) inside my projects main folder (or vice versa)?

  • @rob6129

    @rob6129

    2 жыл бұрын

    you don't need a separate folder for using github. Your unity project folder is also the github repo folder. If you have an existing project you can initialize a github repo from an existing folder

  • @danielamareen7321

    @danielamareen7321

    Жыл бұрын

    @@rob6129 thanks for the clarification

  • @MitchIcarus
    @MitchIcarus Жыл бұрын

    I did this and now my Unity project is gone from the current PC and if I put it back there's nothing in my hierarchy....

  • @gme2968
    @gme29682 жыл бұрын

    Great

  • @remijoel1448
    @remijoel14482 жыл бұрын

    Can we backup up a whole project or it's just only the code we can backup??..... Am asking this because alot of us tend to have alot of assets

  • @CocoCode

    @CocoCode

    2 жыл бұрын

    Yes, that method shown on the video backups the whole project including assets. Please keep in mind that there is a limit of 100mb per file

  • @ahmedaghadi8281

    @ahmedaghadi8281

    2 жыл бұрын

    @@CocoCode is that limit is also for git on our device ( not GitHub but git )

  • @CocoCode

    @CocoCode

    2 жыл бұрын

    @@ahmedaghadi8281 No - on your local device (or your local server) you don't have any limits - apart from the disk space ;)

  • @ahmedaghadi8281

    @ahmedaghadi8281

    2 жыл бұрын

    @@CocoCode Thx for the reply! :)

  • @remijoel1448

    @remijoel1448

    2 жыл бұрын

    @@CocoCode ok so am about to make my first repository.... All the total files was up to 3000 and alot where Dll files... Pls if should i ignore those Dll files? Or i should leave them like that?

  • @sorix3538
    @sorix35382 жыл бұрын

    good

  • @darknside
    @darknside2 жыл бұрын

    Please write down a video on creating your own tycoon, otherwise I watch you have absolutely no ideas for a video