How to do something like this:
Create a with following content:
$ cat testfile.txt
This file will be committed with this id: 83b90a07620ef578450c40a6d38bacc42de7ad2d
Commit testfile.txt
$ git add testfile.txt
$ git commit -m 'Thank you'
Execute git log to verify predicted commit id:
$ git log
commit 83b90a07620ef578450c40a6d38bacc42de7ad2d
Author: rohit01 <*@gmail.com>
Date: Fri Feb 21 23:46:52 2014 +0530
Basically, predict the next git commit id and commit a file which contains that commit id.
That is cryptographically impossible.
The git commit ID is an SHA1 hash of the contents of the commit.
Any change you make in the commit will also affect the ID.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With