skip to Main Content

My problem is that when I develop websites I often have huge photoshop-files or raw images that take several gigabytes of space. When I deploy my simple wordpress site using Git and Beanstalk, I would like to avoid pushing and deploying these files.

Is it possible to have them under git but not push them? I’d still like to have them under git because there are often new versions of them coming etc.

I’m using Git Tower as I’m just a designer.

Thanks!

3

Answers


  1. Are you trying to get the heavy files on your local repository but not on the remote?

    If so, you might want to create a gitignore file that lists your .psd files. Read the Git documentation for more info.

    If you want to have them on your git but not deployed every time you make an update, maybe having them on another branch is the right way to go.

    Login or Signup to reply.
  2. A simple solution is to put the large files in a separate repository.

    Edit: You might also consider adding the psd files to .git/info/exclude but only in the remote repository. Unlike .gitignore, this file is not changed when you push to the remote repo. (Normally this is not what you want, hence .gitignore, but in this case it is useful.)
    The disadvantage of this trick would be that it is not obvious why certain files are ignored. And it wouldn’t transfer when you clone the remote repo.

    Login or Signup to reply.
  3. This could be a job for git-annex.

    https://git-annex.branchable.com

    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search