0

I work with a few colleagues on a Git project stored at Bitbucket. For one of the files I need to keep a different copy (it's a gulpfile and one job just won't run on my machine). Is there a chance for me to keep it from uploading – except that I manually exclude it from git add?

.gitignore is no solution because this file is synched too and the other team members want to keep updating their gulpfile. I tried .git/info/exclude, but this only seems to work unless the file is already in the archive.

wortwart
  • 3,139
  • 27
  • 31
  • 1
    you can ignore by using `update-index --assume-unchanged ` http://gitready.com/intermediate/2009/02/18/temporarily-ignoring-files.html – Craicerjack Jan 08 '15 at 16:45
  • 2
    possible duplicate of [git: can i commit a file and ignore the content changes?](http://stackoverflow.com/questions/3319479/git-can-i-commit-a-file-and-ignore-the-content-changes) – Sascha Wolf Jan 08 '15 at 17:52
  • You're both right - `update-index --assume-unchanged` did the trick. Thanks a lot! – wortwart Jan 09 '15 at 14:05

0 Answers0