Categories
Development

Is it ok to use git reset –hard instead of git pull to deploy code on production?

I use git reset –hard origin/master to pull the commits from bitbucket. I did this to avoid any kind of merge conflict since I am using a single branch and I want the code on production exactly similar as I committed. I don’t expect nor do I want any changes.

Leave a Reply

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