.gitignore Exceptions

Joel Eade
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
May 28, 2014

I'm using SourceTree to version control a WordPress site. I'm excluding the wp-content/uploads folder, as this contains images mostly, however I want to make an exception for a folder that needs to be version controlled and can't be moved out of the uploads folder.

I've tried using the "standard" Git exception character of ! before the folder path (http://git-scm.com/docs/gitignore) but it's not working. I found a forum that stated that Git v1.5.4.1 doesn't support it (https://gist.github.com/jdbartlett/444295#comment-24598) but I can't tell which version it is.

Any help would be appreciated. Thanks,

Joel

2 answers

0 votes
Joel Eade
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
May 28, 2014

Thanks Seth. I'm running git version 1.8.5.2 (Apple Git-48) so I assume the exception (!) should be working. Hmm...

0 votes
Seth
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
May 28, 2014

Click the "terminal" button in SourceTree and run git --version

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events