Git does not send commits to server. Error: Everything up-to-date

3

When giving the command: git push origin master git does not send the information and gives the following error:

Everything up-to-date

I noticed that master of my local repository is not pointing to the last commit, as can be seen in the image below:

How can I resolve this? Thanks!

    
asked by anonymous 02.03.2015 / 18:25

2 answers

1

I resolved here as follows:

git branch temp 
git reset --hard origin/master
git checkout temp 
git checkout master
git merge temp
git branch -d temp
git push origin master

Thank you all for the help! Hugs!

    
02.03.2015 / 19:57
2

I had this error in Mint, the problem was that git add -A was not working, using git add *nome do arquivo* and doing commit it managed to give push .

    
08.12.2016 / 15:31