Sha256: 9c15b4e4b2f97e2d9d35d0a3d2d5fed7bbaf41813f3ed54ee6a777e7f8f85eb9

Contents?: true

Size: 406 Bytes

Versions: 14

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

14 entries across 14 versions & 1 rubygems

Version Path
githug-0.3.3 levels/checkout.rb
githug-0.3.2 levels/checkout.rb
githug-0.3.1 levels/checkout.rb
githug-0.3.0 levels/checkout.rb
githug-0.2.12 levels/checkout.rb
githug-0.2.11 levels/checkout.rb
githug-0.2.10 levels/checkout.rb
githug-0.2.9 levels/checkout.rb
githug-0.2.8 levels/checkout.rb
githug-0.2.7 levels/checkout.rb
githug-0.2.6 levels/checkout.rb
githug-0.2.5 levels/checkout.rb
githug-0.2.4 levels/checkout.rb
githug-0.2.3 levels/checkout.rb