Solved

Include Images in Git Version Control?

Posted on 2014-04-14
4
447 Views
Last Modified: 2014-05-04
We're standing up a Git server, and documenting best practices for our developers to use Git (first time for them).

My web designers asked if images are handled in a particular way with Git. How does that work?
0
Comment
Question by:sandshakimi
  • 2
4 Comments
 
LVL 43

Assisted Solution

by:Chris Stanyon
Chris Stanyon earned 334 total points
ID: 39999104
They're handled no differently than normal files as long as they're under the .git folder
0
 

Author Comment

by:sandshakimi
ID: 40004989
I suppose you're keeping images in the .git folder as a means of keeping it bundled with the other files.

Not that images are going to be version controled. Right?
0
 
LVL 109

Assisted Solution

by:Ray Paseur
Ray Paseur earned 166 total points
ID: 40005241
No points for this, but why wouldn't you want the images version controlled?  If they are a part of the application, they should be.  "Fork me" should always return the right images as well as the right code.
0
 
LVL 43

Accepted Solution

by:
Chris Stanyon earned 334 total points
ID: 40005370
If images are part of your application then keep them with your application and include them under git control.

Images will be version controlled just as all other files will be - your application will likely have new images added / old ones deleted / existing ones updated over time, and you can keep track of all this if they're under version control
0

Featured Post

Master Your Team's Linux and Cloud Stack!

The average business loses $13.5M per year to ineffective training (per 1,000 employees). Keep ahead of the competition and combine in-person quality with online cost and flexibility by training with Linux Academy.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

"In order to have an organized way for empathy mapping, we rely on a psychological model and trying to model it in a simple way, so we will split the board to three section for each persona and a scenario and try to see what those personas would Do,…
This article discusses four methods for overlaying images in a container on a web page
This video teaches users how to migrate an existing Wordpress website to a new domain.
This tutorial will teach you the core code needed to finalize the addition of a watermark to your image. The viewer will use a small PHP class to learn and create a watermark.

773 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question