I'm new to the git world and here is a very weird commit conflict problem which is happening to me all the time. I use git through eclipse. It is pretty weird so I try to explain it simply. Here is what I've done
- checkouted source from remote to local branch
- made some change to the file A.java and did the commit-push A new commit was created and pushed to the remote. Everything was just normal.
- made sure that nobody made any change or pushed new commits
- made some change to the file A.java again and did the commit-push again
- then it told my present local version was not fast-forward and a conflict had been caused, the file A.java
Here is the history
origin source ------- second commit-push
|
-------- first commit-push
The second commit-push's parent was not the 'first commit-push', which was so confusing. Wasn't it supposed to be the 'origin source'?
And this weird phenomenon doesn't just happen to successive commit-pushs for the same file. It's happening to every commit-pushs. A new commit-push I create start from the second newest commit instead of the newest one and an auto-merging will be created if there is no conflicts within my commit and the newest one.
Anyone can tell me what is happening and why it is happening?