Skip to content

Your branch and 'origin/master' have diverged? #22704

Answered by jmmb
jmmb asked this question in New to GitHub
Discussion options

You must be logged in to vote

Just a quick update that I don’t need help anymore (though it’s unclear if any help was coming) …

I decided to follow the topmost answer at https://stackoverflow.com/questions/19864934/git-your-branch-and-origin-master-have-diverged-how-to-throw-away-local-com

And that fixed the problem in terms of resetting my local directory to match the master branch on GH Pages.

And then I realized there still needed to be a small text change to the “index.html” file, so I just changed that file locally and did ‘git add .’ plus ‘git commit -m “message”’ and then ‘git push’ …

It all worked perfectly, so hopefully everything will work now as expected going forward.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
1 participant