git status on the server returns:
On branch develop
Your branch is ahead of 'origin/develop' by 14 commits.
  (use "git push" to publish your local commits)
nothing to commit, working tree clean
My goal is to get the git branch on gitlab.com and on the server synchronized. When I look at the difference between the two, the commits that it states that remote on the server is ahead, are commits I believe are actually there on gitlab.com.
I did the following on the server:
- git statusreturns "Your branch is ahead of 'origin/develop' by 14 commits."
- git reset --soft HEAD~1
- git statusnow returns "branch is up-to-date with origin/develop. Changes to be committed:" and then a list with changes.
- git reset --hard
- git statusnow returns "branch is up-to-date with origin/develop. Nothing to commit."
- git logis missing the latest commits and therefore essentially disagrees with step 5.
- git pull origin developThis pulls various changes (how is that possible since step 5 returns "up-to-date"...?).
- git statusreturns the original message "ahead of 'origin/develop' by 14 commits" and I'm back where I started.
I don't understand this. How can the server return to being ahead of gitlab.com (step 8) after pulling from gitlab...? I removed all changes on the server and just did a pull...
 
    