Git: pulling to production (deployment) manually

  • by

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/

Leave a Reply

Your email address will not be published. Required fields are marked *