Sha256: 68b975dcf81a301f4d4cf4a793afdb7d2c12140e8eac3302acbc5f8170edee06

Contents?: true

Size: 406 Bytes

Versions: 13

Compression:

Stored size: 406 Bytes

Contents

difficulty 2
description "Create and switch to a new branch called my_branch.  You will need to create a branch like you did in the previous level."

setup do
  repo.init
  FileUtils.touch("README")
  repo.add("README")
  repo.commit_all("initial commit")
end

solution do
  return false unless repo.head.name == "my_branch"
  true
end

hint do
  puts "Try looking up `git checkout` and `git branch`."
end

Version data entries

13 entries across 13 versions & 2 rubygems

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