Reputation: 1935
I am working with my team on a project on bitbucket with git.
What I don't understand is why the git pull triggered a merge? There was no need here.
All I wanted was to commit a new file, why do I have finally 2 commits?
Thanks in advance.
Upvotes: 0
Views: 2520
Reputation: 24722
The reason is that you and your coworkers made changes of the same base. So they need to be merged. You could eliminate extra commit if you do rebase instead of merge. Rebase would have effect like if you would get your coworkers changes before your change and then applied yours.
Upvotes: 1