Git 基本概念
Git 基本概念
Git 如何使用?
Git 基本概念
Git 如何使用
Git 基本概念
Git 如何使用
Git 的運作原理
inotifywait -rm --format '%w%f %e' -e create -e close_write .
git init
echo test > file
git add file
SHA1 of "blob 5␀test␊"
printf "blob 5\000test\n" | xxd
printf "blob 5\000test\n" | shasum
echo test | git hash-object --stdin
git cat-file -p 9daeafb9864cf43055ae93beb0afd6c7d144bfa4
cd .git/objects/9d/
[denny@X230 9d]$ python
Python 2.7.5 (default, Nov 3 2014, 14:26:24)
[GCC 4.8.3 20140911 (Red Hat 4.8.3-7)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> fd = open("aeafb9864cf43055ae93beb0afd6c7d144bfa4", "rb")
>>> line = fd.read()
>>> import zlib
>>> zlib.decompress(line)
'blob 5\x00test\n'
git cat-file -p 8b9af3b
tree 993624220e92bb14b1703b6005dccfda913e95bc
parent a5d55500219b63ac21bb3977ae1a69bf5f1f793f
author Denny Huang <[email protected]> 1407702807 +0800
committer Denny Huang <[email protected]> 1407702807 +0800
update
密碼忘記
無法接觸實體機器
Code 沒留