Sha256: 7b3cc36c345a2c4cab935b0dedde2f5ba2437a32d44d63cec74346c9fc9d7b24

Contents?: true

Size: 536 Bytes

Versions: 9

Compression:

Stored size: 536 Bytes

Contents

difficulty 2
description "The README file has been committed, but it looks like the file `forgotten_file.rb` was missing from the commit.  Add the file and ammend your previous commit to include it."

setup do
  repo.init
  FileUtils.touch("README")
  repo.add("README")
  repo.commit_all("Initial commit")
  FileUtils.touch("forgotten_file.rb")
end

solution do
  repo.commits.length == 2 && repo.commits.first.stats.files.length == 2
end

hint do
  puts "Running `git commit --help` will display the man page and possible flags."
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
githug-0.1.8 levels/commit_ammend.rb
githug-0.1.7 levels/commit_ammend.rb
githug-0.1.6 levels/commit_ammend.rb
githug-0.1.5 levels/commit_ammend.rb
githug-0.1.4 levels/commit_ammend.rb
githug-0.1.3 levels/commit_ammend.rb
githug-0.1.2 levels/commit_ammend.rb
githug-0.1.1 levels/commit_ammend.rb
githug-0.1.0 levels/commit_ammend.rb