hash - Expanding Git SHA1 information into a checkin without archiving? -


Is there a way to include the little bit hash in my file at all times? I can only find out how to do this during collections, but I did not know how to do it for every commitment.

I am doing scientific research with GIT as an amendment control, so it will be very useful for reproductive reasons (i.e., GIT hash automatically results in all results files and data Is included).

You can easily add file to SHA -1 (File content SHA-1 can have a more accurate SHA-1, i.e.) $ keywork and ident .

If you want to keep SHA-1 of commit , then any out-of-the-box solution, but you clear and smudge You can use commands of Filters .


In response to this question, it has been said that however, should be modified to reduce each file.

When creating, you will work better on embedding the version number in the generated files, such as the Linux kernel and the GIT project itself.


Comments