Many deployment systems are usefull, but what about manual updates?
init the repo and clone into production
then when you need to pull a new update?
– perhaps you have tested some fix on production and need to overwrite everything with permanent fix?
git fetch
git reset --hard HEAD
git merge '@{u}'
refs:
https://www.freecodecamp.org/news/git-pull-force-how-to-overwrite-local-changes-with-git/