Number of revisions per file saved via Git

Asked

Viewed 162 times

5

I have a very specific need, I need to store at most 3 revisions of a PSD file, and every new revision the older one is deleted. You can do this in Git?

  • Bruno, Welcome to Stack Overflow! Your question doesn’t seem to be related to programming. Ask a [tour] to understand what kinds of questions.

  • 1

    @gmsantos GIT is highly related to programming, I see no reason not to be part of the scope; Bruno, I don’t think it’s possible, however I’m not sure, let’s wait to see if someone can find a solution.

  • What is the need to limit only to 3 revisions?

  • 1

    @Math agrees that git is part of programmers' everyday lives. But in this question I do not see that version of images is related to programming. I inserted meta on-topic this topic for voting.

  • @gmsantos it doesn’t matter much, because if he changes .psd for .php, changes anything in the answer? The answer will then be useful for programmers. Rules do not exist to be taken literally. We have to see if it will be useful to our audience. The rule does not exist for the good of the rule, it exists for the good of the audience. Version control systems were not made to convert code but to convert files. By chance he is doing this in .psd.

  • The issue of saving files from . PSD really is not directly part of the subjects linked to programming. But the use of Git, as an integral part of code versioning, and already part of programming tools such as Xcode, can be addressed. In this case, @Bruno Batista, references Git, questioning its support for image versions. No information was asked about how to edit the PSD, but rather questioned the possibility of Git to factor in its modifications. From my point of view, it seems a useful topic of broad interest, and befitting the use of Git.

  • Really, looking at the point of view of the usefulness of the answer makes sense to keep the question . I will withdraw the vote for closing.

  • First I want to thank you all for trying to help me. Photoshop files often have size in Bites above a normal file, it gets bad to have so many MB saved. I would like to save only the last 3 amendments.

  • I am versioning both fonts (PSD), frontend (HTML, Images, CSS and JS) and backend (PHP). This way I can deliver to the client every versioned project. The issue highlighted is to browse large sized files, and look for a way to keep few revisions of it.

  • Bruno, if the answer offered is satisfactory, it will be interesting to mark it as correct so that other people can use it as a reference. Thank you.

Show 5 more comments

1 answer

2


So far Adobe Photoshop does not feature integration with .PSD. file versioning, but I believe you can create a folder on Github, and from there make a Fork, which will generate a branched copy of the original, and with each modification you must save the file in a different Fork. Take a test.

You can refer to the operation and use of Github tools from free e-book offered by Git itself.

http://git-scm.com/book/pt-br

  • 1

    I appreciate your explanation. I still doubt whether it is possible to set a revision limit per file. Thank you.

  • Well, the number of file versions is open. But I believe this will only be possible if you have a server, and the server controls the verses, and in its settings you determine.

  • Ah, and to mark that you accepted my answer above, below the orange triangle, there is a green sign (Mark), to signal as accepted answer. : D

  • I know buddy, I’m hoping for a better answer. I appreciate your help!

Browser other questions tagged

You are not signed in. Login or sign up in order to post.