To put the prefix ?<revision-number> to codes by Git/SVN
git, svn, version-control
Solution
Maybe you were looking for this:
How do I enable ident string for Git repos?
at least setting an $Id$ is possible and using filters will allow you some more options.
Example (not best one) from this answer
echo '*.txt ident' >> .gitattributes
echo '$Id$' > test.txt
git commit -a -m "test"
rm test.txt
git checkout -- test.txt
cat test.txt
See the manual for git-attributes.
Problem
How can you put the prefix `?v=VersionNumber` to each file at your repository efficiently with Git/SVN? I found out that SO uses the practise to give version numbers to each specific file in its repo. They use SVN. I would like to know how you can do the same with Git. A few examples. #1 ``` <link rel="stylesheet" href="/content/all.css?v=3959"> ``` #2 ``` <script src="./js/question.js?v=3955" type="text/javascript"></script> ```