title: Sync local branch with remote branch
body: <p>What I am trying to do is -</p>
  
  <ol>
  <li><p>I change a file in my local dev server. I upload the file in remote server. I update the remote branch from remote server.</p></li>
  <li><p>Then I check the git status of my local dev branch. It gives me</p></li>
  </ol>
  
  <blockquote>
    <p>git status</p>
    
    <p>On branch dev Your branch is behind 'origin/dev' by 3 commits, and can
    be fast-forwarded.   (use "git pull" to update your local branch)</p>
    
    <p>Changes not staged for commit:   (use "git add ..." to update
    what will be committed)   (use "git checkout -- ..." to discard
    changes in working directory)</p>
  
  <pre><code>modified:   models/event.js
  </code></pre>
    
    <p>no changes added to commit (use "git add" and/or "git commit -a")</p>
  </blockquote>
  
  <p>When I try <code>git pull origin dev</code> then it asks me to commit or stash my changes first before merge.</p>
  
  <p>How can automatically sync my local branch with remote same branch. Any help is highly appreciated.</p>