Issue
One of my managing projects is using Git and Jenkins for deployment. In the Jenkins job they have specified a hard reset after git pull operation .I dont understand why it is using there. If there is no codes need to commit it will run the below script in jenkins
git pull origin Production
git reset --hard dbb56hgf
cp -r <jenkins_work_directory> <domain_document_root>```
Solution
They probably want to make sure that there are no local changes before running the rest of the script.
Answered By - Roger Lindsjö
Answer Checked By - Willingham (JavaFixing Volunteer)