probability

Git hash duplicates

☆樱花仙子☆ 提交于 2020-12-09 16:56:01
问题 Git allows to retrieve the hash of the commit with commands like: git rev-parse HEAD which gives 33b316c or git rev-parse --short HEAD which gives 33b316cbeeab3d69e79b9fb659414af4e7829a32 I know that long hashes in practice will never collide. In practice, the short hashes are used much more often. I'd like to know what's the probability for the short ones to collide? Does git take any measures to overcome possible collisions (when for example using git checkout )? 回答1: I give a formula in my

Git hash duplicates

蹲街弑〆低调 提交于 2020-12-09 16:54:13
问题 Git allows to retrieve the hash of the commit with commands like: git rev-parse HEAD which gives 33b316c or git rev-parse --short HEAD which gives 33b316cbeeab3d69e79b9fb659414af4e7829a32 I know that long hashes in practice will never collide. In practice, the short hashes are used much more often. I'd like to know what's the probability for the short ones to collide? Does git take any measures to overcome possible collisions (when for example using git checkout )? 回答1: I give a formula in my

Git hash duplicates

不问归期 提交于 2020-12-09 16:53:58
问题 Git allows to retrieve the hash of the commit with commands like: git rev-parse HEAD which gives 33b316c or git rev-parse --short HEAD which gives 33b316cbeeab3d69e79b9fb659414af4e7829a32 I know that long hashes in practice will never collide. In practice, the short hashes are used much more often. I'd like to know what's the probability for the short ones to collide? Does git take any measures to overcome possible collisions (when for example using git checkout )? 回答1: I give a formula in my

Git hash duplicates

烈酒焚心 提交于 2020-12-09 16:52:58
问题 Git allows to retrieve the hash of the commit with commands like: git rev-parse HEAD which gives 33b316c or git rev-parse --short HEAD which gives 33b316cbeeab3d69e79b9fb659414af4e7829a32 I know that long hashes in practice will never collide. In practice, the short hashes are used much more often. I'd like to know what's the probability for the short ones to collide? Does git take any measures to overcome possible collisions (when for example using git checkout )? 回答1: I give a formula in my

Git hash duplicates

梦想的初衷 提交于 2020-12-09 16:52:28
问题 Git allows to retrieve the hash of the commit with commands like: git rev-parse HEAD which gives 33b316c or git rev-parse --short HEAD which gives 33b316cbeeab3d69e79b9fb659414af4e7829a32 I know that long hashes in practice will never collide. In practice, the short hashes are used much more often. I'd like to know what's the probability for the short ones to collide? Does git take any measures to overcome possible collisions (when for example using git checkout )? 回答1: I give a formula in my

Git hash duplicates

喜欢而已 提交于 2020-12-09 16:51:33
问题 Git allows to retrieve the hash of the commit with commands like: git rev-parse HEAD which gives 33b316c or git rev-parse --short HEAD which gives 33b316cbeeab3d69e79b9fb659414af4e7829a32 I know that long hashes in practice will never collide. In practice, the short hashes are used much more often. I'd like to know what's the probability for the short ones to collide? Does git take any measures to overcome possible collisions (when for example using git checkout )? 回答1: I give a formula in my