Git Internals (4/4)
Commit

First Commit

Differences between GitRepoAfterCommit1 and GitRepoAfterStaging1
Figure 1: Differences between GitRepoAfterCommit1 and GitRepoAfterStaging1

File: GitRepoAfterCommit1/.git/COMMIT_EDITMSG

Initial commit

File: GitRepoAfterCommit1/.git/refs/heads/master

8ffd83c93ae886cf8aa02c4adce638b9c1abf35b

Commit object

Xavier Leclercq@PATHFINDER /c/GitInternalsExampleRepos/GitRepoAfterCommit1 (mast
er)
$ git cat-file -t 8ffd83c93ae886cf8aa02c4adce638b9c1abf35b
commit

Xavier Leclercq@PATHFINDER /c/GitInternalsExampleRepos/GitRepoAfterCommit1 (mast
er)
$ git cat-file -p 8ffd83c93ae886cf8aa02c4adce638b9c1abf35b
tree 98abf65a1b268a1a3bd1a51e806405091a57de89
author Xavier Leclercq <xavier.leclercq@needfulsoftware.com> 1431793330 +0100
committer Xavier Leclercq <xavier.leclercq@needfulsoftware.com> 1431793330 +0100


Initial commit

Xavier Leclercq@PATHFINDER /c/GitInternalsExampleRepos/GitRepoAfterCommit1 (mast
er)
$ git cat-file -s 8ffd83c93ae886cf8aa02c4adce638b9c1abf35b
221

Xavier Leclercq@PATHFINDER /c/GitInternalsExampleRepos/GitRepoAfterCommit1 (mast
er)
$

File: GitRepoAfterCommit1/.git/logs/refs/heads/master

0000000000000000000000000000000000000000 8ffd83c93ae886cf8aa02c4adce638b9c1abf35b Xavier Leclercq <xavier.leclercq@needfulsoftware.com> 1431793330 +0100	commit (initial): Initial commit

Second Commit

Differences between GitRepoAfterCommit2 and GitRepoAfterCommit1
Figure 2: Differences between GitRepoAfterCommit2 and GitRepoAfterCommit1

File: GitRepoAfterCommit2/.git/logs/refs/heads/master

0000000000000000000000000000000000000000 2a7914df2945b0a79a7dab72022586ece2a15a2d Xavier Leclercq <xavier.leclercq@needfulsoftware.com> 1432469486 +0100	commit (initial): Initial commit
2a7914df2945b0a79a7dab72022586ece2a15a2d 83aec326df9b181f21e50bddb2fe45e4dd8103b5 Xavier Leclercq <xavier.leclercq@needfulsoftware.com> 1432469487 +0100	commit: Updated the file

blog comments powered by Disqus

Copyright(c) 2006-2015 Xavier Leclercq | Privacy policy

Home
Contact Us
Search