git push does not push latest commit to remote.
Steps to reproduce:
- With a local project, last commit amended a few times before push.
- Create a new empty project. (in gitlab)
- Add the new project origin.
- git push -u [origin] [branch].
Problem:
git keeps push outdated commit to remote! Not the commits I locally amended before push.
How can I force git to cleanup and don't remember the stale commits?
Added Information: git 2.1.0