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