All posts

GIT

Move HEAD to the origin Move origin/master to the HEAD git checkout -B master origin/master git push --force origin master

Version-control branches and commit nodes merging into a production line

Archive note: this guide was recovered from my former WordPress notebook. The original date is preserved; commands and links may be updated as I verify them.

Move HEAD to the origin

git checkout -B master origin/master

Move origin/master to the HEAD

git push --force origin master