Solved

Include Images in Git Version Control?

Posted on 2014-04-14
4
466 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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 110

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

Transaction Monitoring Vs. Real User Monitoring

Synthetic Transaction Monitoring Vs. Real User Monitoring: When To Use Each Approach? In this article, we will discuss two major monitoring approaches: Synthetic Transaction and Real User Monitoring.

Question has a verified solution.

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

Many old projects have bad code, but the budget doesn't exist to rewrite the codebase. You can update this code to be safer by introducing contemporary input validation, sanitation, and safer database queries.
When the s#!t hits the fan, you don’t have time to look up who’s on call, draft emails, call collaborators, or send text messages. An instant chat window is definitely the way to go, especially one like HipChat. HipChat is a true business app. An…
The viewer will learn how to count occurrences of each item in an array.
Any person in technology especially those working for big companies should at least know about the basics of web accessibility. Believe it or not there are even laws in place that require businesses to provide such means for the disabled and aging p…

696 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