Note that there are some explanatory texts on larger screens.

plurals
  1. POChecking out Git tag leads to "detached HEAD state"
    primarykey
    data
    text
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. COWhen you say, "execute the deployment script and checking out the v2.0" does your code look like, "git checkout v2.0"? I'm trying to revamp my release script and when I run "git checkout v2.0" from my production machine I get, "error: pathspec 'v2.0' did not match any file(s) known to git." Even though I've run, "git push origin --tags" on my local machine before doing the "git checkout v2.0" on production. I've also tried running, "git pull --tags" and "git fetch --tags" on production prior to calling "git checkout v2.0" and that doesn't work either... I'm still getting the error. Any Ideas?
      singulars
    2. COI was about to delete the above comment but then figured keeping it up might help somebody else. I was getting the error because I had a TYPO in my tag name when I was running, "git checkout v2.0". However, the typo related error is the exact same error you'll get if you run, "git checkout v2.0" WITHOUT a typo BEFORE running, "git fetch --tags". So, ultimately, my problem was solved by running, "git fetch --tags" PRIOR to running, "git checkout v2.0" without any typos. Phew!
      singulars
    3. CONice, yeah you need to do fetch --tags before (or git fetch that will pull all from remote) so git can checkout the tag. Sorry I just saw your comment today.
      singulars
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload