title: Git - avoid committing all projects to sync one project
body: <p>I have just started using Github. </p>
  
  <p>We are a team of two working on two projects from the Github repo. </p>
  
  <blockquote>
    <p><strong>Problem :</strong> While syncing one project, The git wants me to commit changes in all the repo projects, including those projects on which I
    have not worked  nor made any changes. The git shows that almost all
    files from all projects needs to be committed in order to solve the branch
    diverged issue.</p>
  </blockquote>
  
  <p><img src="https://i.stack.imgur.com/5LOuT.png" alt="enter image description here"></p>
  
  <p>How can I resolve this issue , as I'm not able to push my commits.</p>
  
  <p>We face this issue multiple times.</p>
  
  <p>Please help !!</p>
  
  <p>EDIT:
  Both of us/team members are using Windows and one other person who works on some other projects in repo uses mac os.</p>