Sha256: 23f915a50579a71757aa26a71b26818b1dc8ce53ed32e60c4ff6b13e80172a2f

Contents?: true

Size: 513 Bytes

Versions: 13

Compression:

Stored size: 513 Bytes

Contents

difficulty 3
description "Correct the typo in the message of your first (non-root) commit."

setup do
  repo.init
  FileUtils.touch "README"
  repo.add        "README"
  repo.commit_all "Initial commit"

  FileUtils.touch "file1"
  repo.add        "file1"
  repo.commit_all "First coommit"

  FileUtils.touch "file2"
  repo.add        "file2"
  repo.commit_all "Second commit"
end

solution do
  repo.commits[1].message == "First commit"
end

hint do
  puts "Take a look the `-i` flag of the rebase command."
end

Version data entries

13 entries across 13 versions & 2 rubygems

Version Path
mygithug-0.5.1 levels/rename_commit.rb
githug-0.5.0 levels/rename_commit.rb
githug-0.4.8 levels/rename_commit.rb
githug-0.4.7 levels/rename_commit.rb
githug-0.4.6 levels/rename_commit.rb
githug-0.4.5 levels/rename_commit.rb
githug-0.4.4 levels/rename_commit.rb
githug-0.4.3 levels/rename_commit.rb
githug-0.4.2 levels/rename_commit.rb
githug-0.4.1 levels/rename_commit.rb
githug-0.4.0 levels/rename_commit.rb
githug-0.3.5 levels/rename_commit.rb
githug-0.3.4 levels/rename_commit.rb