From e52a6d7b66fc53a04e6adf64f79e63750600656a Mon Sep 17 00:00:00 2001 From: Abdelilah Date: Thu, 26 Oct 2023 10:14:54 +0100 Subject: [PATCH] docs(git project): Add .git exercise --- subjects/git/README.md | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/subjects/git/README.md b/subjects/git/README.md index 10d7d53d9..e53e27f30 100644 --- a/subjects/git/README.md +++ b/subjects/git/README.md @@ -86,7 +86,7 @@ name = ARGV.first || "World" puts "Hello, #{name}!" ``` -- Oops we forget to the author email, Update the file to include the email. don't make a new commit, but include the change in the last commit. +- Oops we forgot the author email, Update the file to include the email. don't make a new commit, but include the change in the last commit. #### Move it - Move the program `hello.rb` into a `lib/` directory (use git commnad) and commit the move. @@ -100,3 +100,8 @@ task :run do require './lib/hello' end ``` +#### blobs, trees and commits +- Explore .git/ directory and explain its contents: `objects/`, `config`, `refs` and `HEAD`. +- Grab the latest object hash within ``.git/object`` directory print its type and its content using `git` command. +- Dump the directory tree referenced in the commit +- Dump the `lib` directory, then `hello.rb` file. \ No newline at end of file