Citricguy.com

Reset Dev Branch to Master in git

Posted March 18, 2020 in Tech

Here is how you quickly reset a development branch in git that you have already commited to your origin to match your master branch.

git checkout dev
git reset --hard master
git push --force origin dev

© 2021 - Josh Sommers