title: Merging branches with Pycharm using Github repo
body: <h2>What is the correct way to merge two branches of a Git<strong>hub</strong> project with Pycharm?</h2>
  
  <p>Suppose there is a branch in a Github project called <code>master</code> and I clone the repo with Pycharm. After that, I create a new branch <code>dev</code> by using Pycharm. The new branch is then shown correctly on Github and some commits are made to the branch.</p>
  
  <hr>
  
  <p>Now, I want to merge the changes from the <code>dev</code> branch to the <code>master</code> branch.         </p>
  
  <p>For ordinary git (not Github) projects, I would checkout to the local <code>master</code> in Pycharm, click on <code>dev</code> in the local branch and select the <strong><em>merge</em></strong> context menu. As a result, <code>dev</code> would be merged to <code>master</code> such that it can be safely deleted.Though, even after I merge the <em>local</em> <code>master</code> with the <em>remote</em> <code>master</code> branch, no changes are shown on Github and both branches still exist. </p>
  
  <p>I also tried to close Pycharm, do a pull request on Github, merge the branches there and restart Pycharm. Unfortunately, Pycharm doesn't even recognize that the <em>remote</em> <code>dev</code> branch has been deleted.</p>
  
  <hr>
  
  <p>My subpar solution has been as follows:</p>
  
  <ul>
  <li>Pycharm: Merge <em>local</em> <code>dev</code> to <em>local</em> <code>master</code>, delete <em>local</em> <code>dev</code>, merge <em>local</em>
  <code>master</code> with  <em>remote</em> <code>master</code></li>
  <li>Github: Create PR, merge branches, delete <code>dev</code>   </li>
  <li>Pycharm: Delete <em>remote</em> <code>dev</code></li>
  </ul>
  
  <p>Now, if I rebase onto the remote <code>master</code> in Pycharm, I get the correct merged branch. Unfortunately though, using the <strong><em>compare</em></strong> context menu, Pycharm still shows that the <em>remote</em> <code>master</code> compared to the <em>local</em> <code>master</code> doesn't have the commits from <code>dev</code>. Although a rebase from the <em>remote</em> <code>master</code> contains all the commits from <code>dev</code>...</p>
  
  <p>Sadly, there's also no Pycharm manual for merging branches with Git<strong>hub</strong> (for normal git there is). Any idea?</p>