That's right, but be careful - git reset --hard
discards all uncommitted changes, i.e. those that are only in the working tree or in the index (setting area). Also, make sure that you are actually on the deployment
branch with git checkout deployment
, since git reset
always changes the position of the current branch, i.e. the one pointed to by HEAD
.
source share