Git guide

PyCharm Git integration on Windows — GitHub & GitLab setup guide

PyCharm has built-in Git integration on Windows. Connect to GitHub or GitLab via File → Settings → Version Control → Git. Commit, push, pull and create branches from the Git menu or the Commit window (Ctrl+K).

Set up Git in PyCharm on Windows

  • 1

    Install Git for Windows

    Download Git from git-scm.com. Install with default options. PyCharm detects Git automatically after install.

  • 2

    Verify Git in PyCharm

    File → Settings → Version Control → Git. The Git executable path should be auto-detected. Click Test to verify.

  • 3

    Connect GitHub account

    File → Settings → Version Control → GitHub. Click + and log in with your GitHub account or token.

  • 4

    Use Git operations

    Ctrl+K → Commit. Ctrl+Shift+K → Push. Git menu → Pull. All Git operations are available in the Git menu and the Commit window.

Git questions

PyCharm Git not working on Windows

Check Git is installed and on PATH: open PyCharm terminal (Alt+F12) and run git --version. If not found, install Git for Windows. Then in PyCharm: File → Settings → Version Control → Git → set the path to git.exe manually (usually C:\Program Files\Git\bin\git.exe).

New to PyCharm?

Getting started guide for beginners.

Beginners guide