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?
Asked
Active
Viewed 38 times
0
Evan Aad
- 5,397
- 4
- 23
- 33
-
2Yes. Also, http://stackoverflow.com/questions/29106996/git-what-is-a-git-commit-id – larsks Apr 06 '17 at 16:57
-
If it wasn't, it would be hard to figure out if the two repos are in sync or not. – Thilo Apr 06 '17 at 16:59
1 Answers
0
Once you push? Yes. IDs would be the same (and, therefore, their content and history).
eftshift0
- 20,217
- 3
- 33
- 45