Home GitHub "Your branch `origin main` has diverged! 💔
Post
Cancel

GitHub "Your branch `origin main` has diverged! 💔

git status
On branch main Your branch and ‘origin/main’ have diverged, and have 1 and 2 different commits each, respectively. (use “git pull” to merge the remote branch into yours)

nothing to commit, working tree clean

git pull –rebase git config –global pull.rebase true git config –global pull.rebase true

If you have changes git status
On branch main Your branch is ahead of ‘origin/main’ by 1 commit. (use “git push” to publish your local commits)

This post is licensed under CC BY 4.0 by the author.