I have upstream
and origin
. I'm currently not using origin, and updating everything to upstream only. The only branches locally or on either remote are main
.
I did git fetch upstream
followed by git reset --hard upstream/main
. That had the desired effect of making my local the same as the last commit from the upstream remote.
But now when I commit I'm getting:
On branch main
Your branch is ahead of 'origin/main' by 7 commits.
(use "git push" to publish your local commits)
I don't want to use origin at all and previously I wasn't getting this message when committing.
How can I solve this? I've tied my repos in knots before by hacking at little things like this so want to do it right.