title: merge commit has been pushed on the two source branchs
body: <p>Something strange happened to the project.</p>
  
  <ul>
  <li>We had a branch "source" from which we created a branch "feature". </li>
  <li>we checkout the branch "feature" and create 3 files. </li>
  <li>then we realize something is missing on branch "source". So We go back on it and edit another file. Since the new added files are not tracked by git, they are still in the project, but we don't commit them. we edit another file that we commit.</li>
  <li>we go back to "feature" and merge the "source" into feature and we push. the feature is created on the remote.</li>
  </ul>
  
  <p>What we don't understand, is that the initial commit, the one with the three files is now in the "source" branch too.</p>
  
  <p>git reflog of all pushes to source</p>
  
  <pre><code>C:\path&gt;git reflog show awsOrigin/source
    31325f0ea (awsOrigin/source) refs/remotes/awsOrigin/source@{0}: push: forced-update
    1921667a4 (source) refs/remotes/awsOrigin/source@{1}: push: forced-update
    8738f3c91 refs/remotes/awsOrigin/source@{2}: fetch: forced-update
    9c89b3654 refs/remotes/awsOrigin/source@{3}: fetch: forced-update
  </code></pre>
  
  <p>the commit 31325f0ea is the commit when we merge source into feature. I don't understand why it has been pushed on remote source. The commit 1921667a4 is the one we made to change just one file.</p>
  
  <p>Git reflog of the "three files commit" shows 3 branches : awsOrigin/source, awsOrigin/feature and local feature</p>
  
  <p>What could have happened ? 
  We use the Git perspective of Eclipse to make commits and pushes</p>
  
  <p>--- EDIT</p>
  
  <p>here is a graphic representation of what happend
  <a href="https://i.stack.imgur.com/APD9d.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/APD9d.png" alt="enter image description here"></a>
  "init properties" is the "three files commit"
  "passage version 10.0.0" is the one with one change on a certain file, the one that was made in source</p>
  
  <p>git log --graph --oneline awsOrigin/source
  <a href="https://i.stack.imgur.com/OUWHx.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/OUWHx.png" alt="git log --graph --oneline awsOrigin/source"></a></p>