How anyone properly setup the gitignore file for BitBucket & SourceTree with OS X?

Has anyone used SourceTree and BitBucket with OS X? I’d like to know if you were able to successfully setup your .gitignore file, I’ve been having issues with it since day 1. So I just don’t use one anymore, which is less than ideal.

I am working with SourceTree on OSX (though not with BitBucket). What sort of problems are you running into ?

I believe @Kiwasi posted a link to the proper settings at one point. I can’t seem to find them. But, yes it works just fine, I use OSX/sourcetree daily with no problems.

I use the default gitignore for Unity. A quick web search will find one. Here is one from the top of the list. gitignore/Unity.gitignore at main · github/gitignore · GitHub

The thread @zombiegorilla refers too is this one. Its more of a generic discussion on version control with Unity. But it might help out. Best way to collaborate with team member on single project? - Unity Engine - Unity Discussions

1 Like

Thanks guys, just got it to work!

I think the problem up until now was that I was creating the .gitignore with TextEdit rather than using the command “touch .gitignore” as described here Ignoring files - GitHub Docs

The other problem was removing tracking of the current files which I was able to solve by opening terminal through SourceTree and entering the following commands exactly as shown below (with periods), as described here git - Apply .gitignore on an existing repository already tracking large number of files - Stack Overflow

git rm -r --cached .

git add .

git commit -m “.gitignore is now working”