I made a mistake just now by mistakenly issued the command:
git push origin master
on a local branch, say, mybranch. This branch is branched from master and contains some local changes that master does not have.
The message I get is:
Everything up-to-date
I checked the master log there is nothing abnormal. My question is that:
Thanks.
If you don't specify the source(local) and destination(remote) branches, push
uses the specified spec as both source and destination. So, basically, when you did
git push origin master
you just pushed your local master branch to the remote master branch.
To actually push your branch into master you should do
git push origin mybranch:master
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With