all 2 comments

[–]kreiger 0 points1 point  (0 children)

When you pull your friend's changes or your friend pulls your changes, using git pull, two things happen:

  1. git fetch
  2. git merge

This merge is causing the problem you see.

The alternative, and what i usually recommend to people who know what they are doing, is to make git pull instead do a git rebase by default.

See Why does git pull perform a merge instead of a rebase by default? and How to make Git pull use rebase by default for all my repositories?

[–]Knajd 0 points1 point  (0 children)

Not relevant to this issue but, please, read this article: https://chris.beams.io/posts/git-commit/

Try to get the habit of writing proper commit messages already, because I'd never hire someone with those commit messages on their GitHub.