How to Use GitHub With Unity (Also Works With Existing Projects)

preview_player
Показать описание
How to Use GitHub With Unity (Also Works With Existing Projects)

Greetings, in this Unity and GitHub tutorial we shall be looking at how to setup a github repository with an existing unity project. The method to setup a github repo with an existing unity project is simple and I haven't seen it covered without the need to move files about, which can be problematic for a Unity project as those can be big.

This tutorial on how to setup github with Unity gets around this! We will create a gitbub repository / project where your Unity project is, then upload it to Github so you have a remote backup and can use version control and recieve all the benefits of that.

Github desktop is made by Github and great for those who want a simple version control setup.

So in this tutorial on how to setup a github repo for an existing unity project, we don't need to move any files about. We simply open github desktop, click on File and then add local repository. The amazing thing about this is, if we select a folder that isn't a git repository, github desktop will create all the git files we need, in that folder automatically! So our Unity project will become a git unity project, ready to be used with git!

So to add a local Unity project to GitHub make sure the name of the new repository you are making is the same as the Unity project folder name or a new folder will be created and your unity project won't become a git repo. Github desktop also provides a Unity git ignore for you if you want one.

After we click on create repository, we will be asked if we want to use Git LFS. We will be clicking not now. You will also notice that the unity project is now a git repo! After that, we need to click cancel as when we try to add a local repo, github desktop will tell us that it is already a git repository. This means the method worked! So as you can see, it is easy to add an existing project to GitH|ub using GitHub desktop.

We just need to click on publish repository and we are done! We have a github repo setup and also on the github servers. So this tutorial is perfect for adding an existing unity game/project to Github.

Thanks for watching this tutorial on how to setup gitHub with Unity.

If you enjoyed this tutorial on how to push an existing project to Github be sure to subscribe to keep notified when I upload.

How to Use GitHub With Unity (Also Works With Existing Projects)
Рекомендации по теме
Комментарии
Автор

99% of tutorials were how to add a brand new project to github. This was very helpful and fast. Thanks

willlienellson
Автор

yess, finally a simple video i can follow along with. got my project uploaded easy peasy, now just need a few optimizations to the gitignore so the project doesnt take up too much space.

sleepykittyMMD
Автор

Thank you for this tutorial. It has been very helpful for my commercial projects.

jermesastudio
Автор

Nice! Simple and to the point, thank youuuu!!! and Happy New Year

TheDesignerDeveloper
Автор

Thank you for helping me so much with my issue followed other tutorials but it didnt let me upload cuz files were too big this solved my problem, I would love to se a video for LFS and idk what gitignore is but sounds useful!

neftaly
Автор

amazing tutorial! quicker than the rest and the only one covering how to add a unity game you already have to github! please make more! also, do I see RPG in a box on your desktop? will you be making tutorials on that?

yagtihs
Автор

Thanks for the tutorial. Liked and subscribed, and commented!

johngrey
Автор

Thanks so much for this, it was so easy to follow!

makaioh
Автор

LFS for unity with Existing project. I committed a repo that had a video file which was large and OMG it was so complicated to untrack and install LFS.

AmoghJoshi-qtzp
Автор

thanks a ton straight to the point I LOVE YOU

realcloud
Автор

Good explanation of the steps, but there is a second video to explain the benefit of adding GitHub to unity and then uploading the project

faltatchannel
Автор

Thanks so much for this, it was so easy

jackjabbour
Автор

Didn't work for me. I get an error "Cannot publish unborn HEAD"

flashheart
Автор

how to make the repo of unity project detect main language as C# instead of ShaderLab ?

chaobanh
Автор

1:07 I didn't get this window, once I added my folder it directly sent me to the main Depository page

soufinator
Автор

So now when i change things in the game, does my repository record every move i make? or do i have to write them down

YusafAnimations
Автор

Unable to create the new repository because there are too many new files in this directory. Any idea what this means? Happened when I clicked create repository.

Dacommenta
Автор

can we push one folder that contains 5 mini unity project? Just wanna push in one repo

bestteam
Автор

if I want a repository just fo work with my friend should I put privare or public?

risingforce
Автор

1:28

"Looks simple enough"

*Unable to create the new repository because there are too many new files in this directory*

"WHY DOESNT MINE LOOK LIKE THAT"

redzils
join shbcf.ru