mirror of https://github.com/01-edu/public.git
docs(git project): Add .git exercise
This commit is contained in:
parent
9ea7e72aa5
commit
e52a6d7b66
|
@ -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…
Reference in New Issue