I have a jenkins job with the following configurations as shown in the images,
My workspace for jenkins is my local repo directory as given below
D:\Jenkins\workspace\FirstProject\TestCI
ie TestCI is my github repo name which i cloned in the above location and set it as my jenkins workspace path.
so basically my jenkins job builds when a change is pushed to my github repo and after the build when i type git status in my local repo i get the error 'HEAD detached at '
What is the reason my head getting detached when jenkins job builds?