I have a build system that accepts a git repository, returns to a specific commit, and then loads these files somewhere. Then he returns to the master.
I am not sure that I am using the correct git commands since git will provide me with this message whenever I do a git checkout SHA :
You are in 'detached HEAD' state. You can look around, make experimental changes and commit them, and you can discard any commits you make in this state without impacting any branches by performing another checkout. If you want to create a new branch to retain commits you create, you may do so (now or later) by using -b with the checkout command again. Example: git checkout -b new_branch_name
The only thing I want to do is reset my working directory to a specific commit, load these files and return to HEAD / master. I can make a few changes to the files when I go to a specific commit SHA (converts XML to JSON or something else), but I just want to lose all these changes when I return to the wizard. Right now this is my code
git checkout SHA
Is this the preferred way to do what I want? Will I always be able to do hits from the source without any file conflicts (I donβt want everything I do between checks)?
I ask because I see "your master and origin / master diverged" several times, although I'm not sure if this is due to this.
Thanks in advance.
Ronze source share