Script should be executable.
Remove the term "target" from the checkout command.

And fix a typo while at itgit diff