Q:

Git-Moving an older commit to tip of master

We merge all changes in master and it needs to be a PR.  All release strictly happens from master.  We are not allowed to release from any other branch.  We don't release each and every commit instead once in a sprint (2 weeks) after testing the release candidate (commit).  The problem is once we release we don't stop our active line of development and in case we need to give a hotfix later we have to fork out from a released commit to another branch.  This demands a release from a hotfix branch.  Unfortunately, we have a policy of release only from master.  Is there a way we can move the release commit to tip of the master and provide the fixes and release from master.  Later we want to integrate everything which happened after release back to master. 
Is there a way to achieve this without stopping main line of development and violating release from master policy? 

A:

So you want to point master at another commit in the past?  Sure.  First, make sure your current master branch won't be deleted by putting it on a new branch. 
git checkout -b old-master

Then switch back to master
git checkout master

Now, force master back to whatever previous commit you want
git reset --hard 0eaf3276

Alternately, if you have the release tagged, you can use that. 
git reset --hard v1.0.0

Now, if you want to push your new master branch up, just do
git push --force

Also, your "only release from master" policy is dumb.  But you probably already know that.  :D

