I am relativly new to git and am facing this problem. The git push command shows the error below. I will explain to you from the begining what i had been trying to do . I cr
You have to update the HEAD known by git. It will be transparent for you.
1 - Go to master
branch
git checkout master
2 - Get updates from the remote to your local repository
git fetch
3 - Update your local repository using rebase instead of merge. See there difference between git pull and git rebase
git rebase origin/master
4 - Push your master
branch
git push origin master:master