I am working with two branches test and main.
So, being on the main branch, I did :
git merge test
And everything went fine. All the changes were merged.
Then to push it to the remote main, I did :
git push
But it seems like that did nothing, it said :
Total 0 (delta 0), reused 0 (delta 0)
To git@github.com:Company/My-App.git
b878c9d..0dc7fbe main -> main
I don’t think it should be showing zero above as Total if the push did go through fine.
How can I push my main branch ?
That just means git does not write any objects. That happens when all objects are already on remote and when you merge you just move label ‘main’ to the latest commit. I just made a quick test to prove that: