Commit 251604a9 authored by Grégory Mounié's avatar Grégory Mounié
Browse files

Add a git hash-object of the first empty file

parent 10903c58
......@@ -160,6 +160,7 @@ you@laptop$ git shortlog -s --no-merges | sort -nr | head -26
cd MyRepo.git
git init .
touch myfile.txt
git hash-object myfile.txt # keep the SHA1 in mind
git add myfile.txt
git commit -m "first commit"
...
......@@ -212,9 +213,9 @@ you@laptop$ git shortlog -s --no-merges | sort -nr | head -26
cat .git/refs/heads/master
ls -lR .git/objects/
git cat-file -p SHA1_DE_MASTER
git cat-file -p SHA1_DE_TREE # notez le SHA1 de myfile.txt
git cat-file -p SHA1_DE_TREE # Keep the SHA1 of myfile.txt
git cat-file -p SHA1_DE_SUBDIR
git cat-file -p SHA1_DE_subfile.txt # identique au SHA1 de subfile.txt
git cat-file -p SHA1_DE_subfile.txt # identical to SHA1 of subfile.txt
\end{minted}
\end{exampleblock}
\end{frame}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment