Sourcetree is ignoring my global .gitignore file so I'm trying to get it to ignore an individual file by right clicking it and selecting Ignore... The problem is that the Ignore... option is greyed out. Can anyone tell me why?
You have to stop tracking the file before you can ignore it. You can simply right click on the file and hit "Stop Tracking". If you're in Git and you've got the staging view you should be able to right click on the same file (provided it has a blue question mark icon) and click "Ignore". If you're using Mercurial you'll need to commit the removed file first and it'll then re-appear as an uncommitted change from which point you can right click on that file and click "Ignore".
Above is a screenshot of the state you need to get your file into in order to ignore it.
Hope that helps
Same as Ronaldo, I never got the blue question mark and couldn't stop tracking a file (I wanted to ignore .gitignore to maintain a custom version in my working folder without overwriting the repo .gitignore)
I ended up fixing the issue from the console following the accepted answer @ http://stackoverflow.com/questions/20525055/how-to-ignore-existing-file-in-git-using-source-tree
git update-index --assume-unchanged .gitignore
Atlassian Summit is an excellent opportunity for in-person support, training, and networking.Learn more
Supported Platforms macOS Windows To make using Sourcetree as simple yet powerful as possible we embed (bundle) dependencies such as Git, Git LFS, and Mercurial. We strive to keep these...
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!
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