Skip to content

Instantly share code, notes, and snippets.

@sandeeplearner
Last active August 17, 2020 21:24
Show Gist options
  • Save sandeeplearner/ba0df728f20aee0e6e3131ff8b45b6a2 to your computer and use it in GitHub Desktop.
Save sandeeplearner/ba0df728f20aee0e6e3131ff8b45b6a2 to your computer and use it in GitHub Desktop.
use syscall
#!/usr/bin/ruby
value = syscall("git tag --sort=committerdate")
tags_in_repo = value.split("\n").reverse()
tags_in_repo.each do |repo|
if repo.to_f == @tag_to_be_checkout
puts "Tag found alreay in #{repo}"
checkout_specifc_tag(repo)
return
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment