Tuesday, December 15, 2015

Force to push a specifc branch to origin in Git

To force to push a specifc branch to origin in Git,

do as follows:

git push -f origin gh-1004

Reference:
http://stackoverflow.com/questions/11453807/force-push-current-branch

No comments:

Post a Comment