docs(git project): Add .git exercise

This commit is contained in:
Abdelilah 2023-10-26 10:14:54 +01:00 committed by MSilva95
parent 9ea7e72aa5
commit e52a6d7b66
1 changed files with 6 additions and 1 deletions

View File

@ -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.