I am new to GIT. I have created a virtual host and setup my project locally. All the branches of the site list out including origin/sprint. I wanted to switch to origin/sprint
branch and start my work. (I am not the one who created a origin/sprint
branch.) So I gave git checkout origin/sprint
and now it has checked out as follows. ((HEAD detached at origin/sprint))
I made some changes in that sprint branch too. But I didn't commit yet. I want to know whether it will be a problem if I commit by staying as ((HEAD detached at origin/sprint))
?
If committing in HEAD detached is not the correct way, what are the steps should I follow as I have done some changes in that HEAD detached.
Thank you.