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 status
returns "Your branch is ahead of 'origin/develop' by 14 commits."git reset --soft HEAD~1
git status
now returns "branch is up-to-date with origin/develop. Changes to be committed:" and then a list with changes.git reset --hard
git status
now returns "branch is up-to-date with origin/develop. Nothing to commit."git log
is missing the latest commits and therefore essentially disagrees with step 5.git pull origin develop
This pulls various changes (how is that possible since step 5 returns "up-to-date"...?).git status
returns 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...