In Jenkins Source Code Management, I put refs/heads/dev
into the Branches to build->Branch Specifier (blank for 'any').
And in the physical machine which Jenkins server depends on, when I type in git branch
, I would expect it to should show * dev
as current branch instead of * (HEAD detached at 0952s96)
.
It's the expected result of git checkout refs/heads/dev
. Try dev
instead of refs/heads/dev
. But in most cases, it doesn't matter if it's in detached HEAD state as long as HEAD
and refs/heads/dev
point to the same commit.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.