5
When giving the command: git push origin master git does not send the information and gives the following error:
Everything up-to-date
I realized that the master
of my local repository is not pointing to the last commit, as can be seen in the image below:
How can I fix this? Thank you!
Is there a more current branch? Try to push this branch.
– Felipe Avelar
No, it’s just the same Master branch. The point is that I had reversed a commit and then continued to work on the master and do other commits. However when I went to send to Bitbucket gave this error.
– fredsilva
If you are absolutely sure that your branch is in front of the bitbucket, I would try
git push -f origin master
.– yamadapc
If you look at the master branch (local) and the remotes/origin/master (which is Bitbucket) are right behind my current commit. For lack of knowledge, I did a reset and then continued to commit, only then saw the problem. yamadapc, so I understand this command forces you to send, right? But what happens is that what is in Bitbucket is the same as what is in my branck master (or, wherever it is pointing), as can be seen in the image. What I need to do is point this master(local) to the most current commit and then I can send it with git push
– fredsilva