title: Pushing to GitHub with Pycharm and Two Factor Authentication
body: <p>Using Pycharm, I have configured it to connect to my GitHub account where I have two-factor authentication enabled. When I first open Pycharm, I have the option to pull down from GitHub, where it has be log in (or saves my credentials) but then prompts me for my authentication token, which works fine. It pulls down the repo just as it should. The problem stems when I try to commit and push files back up. I execute the commit, give it a description, then try to push the commit, and I login at this dialog:</p>
  
  <p><a href="https://i.stack.imgur.com/B9mnd.png" rel="noreferrer"><img src="https://i.stack.imgur.com/B9mnd.png" alt="Pycharm git login"></a></p>
  
  <p>The problem here is that it doesn't give me the opportunity to enter my two-factor authentication token for the push, and the authentication fails.</p>
  
  <p>Is there any way to:</p>
  
  <ol>
  <li>Have Pycharm re-prompt for the token</li>
  <li>Cache the token from the initial login (less secure of course)</li>
  <li>Set up the equivalent of a "Google Application Password" where it has a separate tokenless password for just this one application (much less secure)</li>
  </ol>
  
  <p>Or is this just a bug that needs reported? I have just started using Pycharm, but couldn't find much useful information on this subject.</p>