1
git hash-objectがshasumおよびopensslコマンドと異なる結果をもたらす理由は何ですか?git hash-objectコマンドと同様のsha1を生成する方法
➜ printf test | shasum
a94a8fe5ccb19ba61c4c0873d391e987982fbbd3 -
➜ printf test | git hash-object --stdin
30d74d258442c7c65512eafab474568dd706c430
➜ echo -n "test" | shasum
a94a8fe5ccb19ba61c4c0873d391e987982fbbd3 -
http://stackoverflow.com/questions/552659/how-to-assign-a-git-sha1s-to-a-file-without-git/552725#552725 – Vili