-1

Trying to write a gradle git checkout task. Don't know which plugin is used for git in gradle and how to write the checkout task.

Att11
  • 15
  • 1

1 Answers1

0

You could use a project.tasks.create directive, as in this answer, although I would now use git switch instead of checkout.

Or you can use grgit/grgit-gradle, which uses GrGit (and that includes checkout)

VonC
  • 1,262,500
  • 529
  • 4,410
  • 5,250