Weitere ähnliche Inhalte
Kürzlich hochgeladen (20)
Git objects v2
- 2. mkdir 1102
cd 1102
git init
git config
git config
echo hello
git add .
git commit
git tag –a
user.name “chin”
user.email “chin@dummy.com”
> hello.txt
–m “commit hello.txt”
v1.5 –m “test tag”
- 4. Format:
“tree” SP “(contents size)" NUL “(contents)“
Sample:
tree 37
100644 hello.txt
CE 01 36 25 03 0B A8 DB A9 06 F7 56 96 7F 9E 9C A3 94 46 4A
Sha-1:
aaa96ced2d9a1c8e72c56b253a0e2fe78393feb7
- 5. Format:
“commit” SP “(contents size)" NUL “(contents)" LF
Sample:
commit 159
tree aaa96ced2d9a1c8e72c56b253a0e2fe78393feb7
author chin <chin@dummy.com> 1383319258 +0900
committer chin <chin@dummy.com> 1383319258 +0900
commit hello.txt
Sha-1:
8f9e9972c57f8380690baa7bf30d4a6dd9331a99
- 6. Format:
“tag” SP “(contents size)" NUL “(contents)" LF
Sample:
tag 125
object 8f9e9972c57f8380690baa7bf30d4a6dd9331a99
type commit
tag v1.5
tagger chin <chin@dummy.com> 1383383976 +0900
test tag
Sha-1:
6a78ea64ba8b4ae4647e5acb58fd7bce62e307b6