SourceTree Ignores my .gitignore file

I have a repository with a .gitignore file at the root of the repository. On the command line, git uses this file and correctly ignores the files I want ignored. SourceTree does not appear to pick up this file. When I go to commit in SourceTree, files that should be ignored are not ignored.

How can I get SourceTree to reconize the .gitignore file

5 answers

I have the same issue. I have the .gitignore set in advanced settings at the "repository-specific ignore list" option, I have added the *.pyc to .gitignore, yet my pyc files are still listed in the working copy changes.

Thanks!

I have the same problem when opening an existing git repository.
The gitignore file itself is ignored by Sourcetree (Version 1.6.11.0)

Also having the same problem where SourceTree is not recognizing my .gitignore file.

Please Update,

Thank You

Maybe this is why:

".gitignore will prevent untracked files from being added (without an add -f) to the set of files tracked by git, however git will continue to track any files that are already being tracked."

 From http://stackoverflow.com/questions/1274057/making-git-forget-about-a-file-that-was-tracked-but-is-now-in-gitignore

Suggest an answer

Log in or Sign up to answer
How to earn badges on the Atlassian Community

How to earn badges on the Atlassian Community

Badges are a great way to show off community activity, whether you’re a newbie or a Champion.

Learn more
Community showcase
Posted 2 hours ago in Off-topic

Miscellaneous Monday - Help, I'm Surrounded!

I want to talk about chores today, specifically ones that you absolutely hate doing. I bring this up because this weekend I cleaned the tub. This isn't a normal task for me. I do absolutely whatever...

131 views 43 2
Join discussion

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you