Linked Questions
10 questions linked to/from Why does Git use a cryptographic hash function?
2
votes
0
answers
675
views
Why did Git and Mercurial use SHA1 [duplicate]
Both Git and Mercurial use SHA1 extensively throughout the application.
Why was SHA1 chosen rather then another Cryptographic hash function?
Both Git and mercurial are both 10 years old. What ...
609
votes
6
answers
89k
views
How would Git handle a SHA-1 collision on a blob?
This probably never happened in the real-world yet, and may never happen, but let's consider this: say you have a git repository, make a commit, and get very very unlucky: one of the blobs ends up ...
104
votes
4
answers
30k
views
Why doesn't Git use more modern SHA?
I read about that Git uses SHA-1 digest as an ID for a revision. Why does it not use a more modern version of SHA?
42
votes
3
answers
8k
views
Why does Git use SHA-1 as version numbers?
Git uses SHA-1 for the user to refer a commit.
Subversion (SVN) and Mercurial (hg) use an incremental number.
Why did the Git team make that design decision of using SHA-1 instead of something more ...
27
votes
2
answers
13k
views
Is it dangerous to keep code in gitlab and github
Is it dangerous to keep code in gitlab and github?
I heard it is quite safe to commit our code to gitlab and github.
The reason is every code is hashed and it is nearly impossible for everyone to ...
14
votes
2
answers
11k
views
Why must I force push after changing a commit message?
I read this about how to amend commit messages. The accepted answer says:
If you've already pushed your commit up to your remote branch, then you'll need to force push the commit with git push <...
5
votes
2
answers
1k
views
Is a git commit hash trustable?
When using code from unknown third partys on github, I always make sure to check the code that no obvious backdoors that could compromise the security of my system exist.
The specific state of the ...
3
votes
1
answer
1k
views
Git hash output does not match sha1sum, why? [duplicate]
I've seen this post, and it mentions that Git uses a SHA-1 hash for the version that I am using. However, when I'm comparing the output of git hash-object to the familiar sha1sum, I get different ...
0
votes
1
answer
447
views
Is it possible to rewrite very old git history for develop branch
I am using git flow. I made some rules how to keep git history clean because I am generating changelog from these commits.
But some old commits (made directly to develop) or merged feature branches ...
2
votes
1
answer
384
views
Validate source code authenticity from git repository
Suppose there is a bug in git causing developers commit incorrect changes to the repository so that sources checked out do not match what they have locally under same hash. I understand that hash ...