I have made locally changes but whenever i push the code it says “Everything up-to-date
branch ‘master’ set up to track ‘origin/master’.”
Everything up-to-date branch ‘master’ set up to track ‘origin/master’.
Share
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Are you working with a detached head by any chance?
As in:
indicating that your latest commit is not a branch head.
Warning: the following does a
git reset --hard
: make sure to usegit stash
first if you want to save your currently modified files.As mentioned in the
git checkout
man page (emphasis mine):While
git push
says “everything up-to-date”, you still can technically push a detached HEAD, as noted in the comments by Jonathan BennYou have to specify the destination branch, since the source is not a branch, and does not have an upstream target branch.
I have faced same issue. As I didn’t add changes to staging area. And I directly tried to push the code to remote repo using command :
git push origin master
And it shows the message
Everything up-to-date
.to fix this this issue, try these steps
git add .
git commit -m "Bug Fixed"
git push -u origin master