How to Setup a Gitignore File for a Unity Git Project

preview_player
Показать описание
How to Setup a Gitignore File for a Unity Git Project

Greetings, in this Unity Git tutorial we shall be looking at how to setup a gitignore file for your Unity project. This is a super quick tutorial and we will be using the gitignore that is the default option Github provides. You can customise this gitignore to suit the needs of your project.

To create a gitignore file, we need to go to our Unity project that we have setup with git. Then we need to make a file, this file will have no name and will have the .gitignore file extension.

COPY THIS IF YOU DON'T WANT TO TYPE THE Git Ignore: .gitignore

Once we have the gitignore created, we need to add some text to the file.

You can open the gitignore using any text editor. Then paste the text into the gitignore file. After that, save the file and voila, the gitignore will tell this git repo to ingore certain files. These files don't need to be pushed and pulled by git as they are either temp files or files Unity will generate locally.

Also make sure the gitignore is in the root of the project directory. If you are unsure what that means, put the gitignore where I put in in this unity github tutorial.

Thanks for watching this tutorial on how to setup a gitignore file for a Unity Git project.

This will work for any git project, you don't have to use github desktop!

If you found this tutorial on how to create a gitignore file for a unity project, then be sure to subscribe to keep notified when I upload.

How to Setup a Gitignore File for a Unity Git Project

This Gitingore tutorial should help answer the following questions:

How to Ignore Git Folders and Directories .gitignore
How to use GitHub with Unity
How to use Unity with Git and .gitignore
How to make a Unity gitignore
How to add a gitignore to your unity game
How to make a gitignore for unity
How to properly upload your Unity project to Github repository (.gittignore, .gittaributes)
How to use GitHub and Unity
How to make a .gitignore for Unity Projects
What is the best gitignore for unity now
Using GitHub with Unity
How to set up a .gitignore file for Unity
How to setup a .gitignore file for Unity
How to set up .gitignore file for Unity
How to add a Gitignore for unity
How to add a Gitignore for a unity git project
How to set up .gitignore properly for Unity 2D
How to set up .gitignore properly for Unity 3D
Рекомендации по теме
Комментарии
Автор

Thank you for this tutorial very informative!

joeyjax
Автор

Fantastic man! This allowed me to cut a lot of the clutter from Unity out of my repository. I was looking for exactly this information as I had created a github repository for my Unity project already using github desktop (forgetting to add gitignore) and did not want to have to delete it in order to filter out all of the unnecessary files. Thank you for this :)

travisperry
visit shbcf.ru