Browse Source

docs(git project): Add .git exercise

pull/2516/head
Abdelilah 6 months ago committed by MSilva95
parent
commit
e52a6d7b66
  1. 7
      subjects/git/README.md

7
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.
Loading…
Cancel
Save