1

I'm using Tower for Mac to help manage my git repositories. I'm also using CodeKit to minify & compress my LESS CSS. This produces what appear to be blank files in the repo although they show a correct file size. I've tried changing .gitattributes to show these particular files to binary to no avail.

What obvious thing am I doing wrong?

Jared Eitnier
  • 7,012
  • 12
  • 68
  • 123
  • I suppose none of the advices in http://delvarworld.github.io/blog/2013/08/10/dealing-with-compiled-files-in-git/ can help? – VonC Jan 09 '14 at 19:15
  • @VonC doesn't really relate to my issue, I did see that in my searches though. – Jared Eitnier Jan 09 '14 at 19:26
  • Ok. Is it an issue solely with CodeKit then? (since it produces blank files) – VonC Jan 09 '14 at 19:28
  • I'm not sure if it's Tower or CodeKit. The issue seems to occur after I stage the file. The unstaged view of the content looks normal. When I stage it all the code is missing and replaced with a single blank line. – Jared Eitnier Jan 09 '14 at 19:45
  • So on the `git add` then? Do you have any .gitattributes with a `smudge` script in it? (as in http://stackoverflow.com/a/2316728/6309) – VonC Jan 09 '14 at 19:50
  • No I have nothing of the sort. .gitattributes only contains `* text=auto` – Jared Eitnier Jan 10 '14 at 04:34
  • It would be good to know where exactly the problem is: after staging the file, execute "git diff --staged " on the command line. What does this return? For more info, you can get in touch via support[at]git-tower[dot]com – Tobidobi Jan 14 '14 at 11:16

0 Answers0