3

Recently changed my Gitignore which was fine until i pulled down on another machine to find some of the project was not there. So i have switched back to my old git ignore but now as soon as i open the project and go to source tree these files and folders need pushing every time.

enter image description here

I do not edit these files and every commit they come up. Then even though i have hidden meta files selected in the settings whenever i make any change, it makes me commit a load of meta files.

Any ideas to fix both these issues.

Here is my git ignore.

# =============== #
# Unity generated #
# =============== #
[Tt]emp/
[Oo]bj/
[Bb]uild
[Ll]ibrary/
sysinfo.txt
*.stackdump

# ===================================== #
# Visual Studio / MonoDevelop generated #
# ===================================== #
[Ee]xported[Oo]bj/
.vs/
/*.userprefs
/*.csproj
/*.pidb
/*.suo
/*.sln*
/*.user
/*.unityproj
/*.booproj

# ============ #
# OS generated #
# ============ #
.DS_Store*
._*
.Spotlight-V100
.Trashes
Icon?
ehthumbs.db
[Tt]humbs.db
1
  • Generally, many/most Unity teams use subversion. Git is really not relevant for binary files, deleting folders etc.
    – Fattie
    Commented Feb 14, 2016 at 18:46

1 Answer 1

2

This is a zillion-times duplicate question but,

1) git is for source control. "source" means small text files (ASCII files), being computer languages.

You don't use git, at all, for things like filmmaking, game production, in a music studio, the TV business, etc.

The game industry generally runs on subversion.

(Unity projects have four or five tiny "source" files, and then gigabytes of video, animation, textures, models etc. It's just totally unsuitable for git.)

2) If for some reason you are trying to use git with a Unity project. FYI the usual suggestion,

simply use the actual up-to-the-minute official plan FROM GIT THEMSELVES:

https://github.com/github/gitignore/blob/master/Unity.gitignore

Hooray!

You often see long-winded discussions about "how to use git with Unity", this is bizarre as (the best you can do with git) is right there, courtesy git git.

Just to repeat, do note that it is incredibly easier to use svn with Unity. svn is made for media, film, game etc projects. Git is really for source (i.e. computer code files). Unity projects have a few hundred bytes computer code ASCII files, and very often 100s of gigabytes of music, video, texture, modelling etc assets. You're knocking yourself out using git for no reason.

2
  • I am just looking at your link quickly, i did manage to fix the issue, just going to give it a read before marking you answer as correct.
    – bSky
    Commented Feb 15, 2016 at 21:43
  • 4
    Just a FYI, Git has an extension specifically for large file support and the extension is supported by both GitHub and TFS in Git mode Commented May 11, 2016 at 23:38

Not the answer you're looking for? Browse other questions tagged or ask your own question.