Search code examples
gitgit-push

Is the SHA1 hash of a commit node the same on the source and target repositories after a push?


Suppose I clone a repository from some remote r, perform a commit, and push the changes up to r. Is the SHA1 hash of the new commit node the same in r as it is in my repository?


Solution

  • Once you push? Yes. IDs would be the same (and, therefore, their content and history).