- Install Git: Ensure Git is installed on your system. You can download it from git-scm.com.
- GitHub Account: Have your GitHub account credentials ready. If you don't have a GitHub account, create one at github.com.
- Open PyCharm: Start PyCharm on your computer.
- Access Preferences: Go to
File > Settings(on Windows/Linux) orPyCharm > Preferences(on macOS). - Configure Git:
- Navigate to
Version Control>Git. - Click the
...next to thePath to Git executableand ensure PyCharm has detected your Git installation, or navigate to it manually. - Click
OKto save.
- Navigate to
- Access GitHub Settings:
- In the same
SettingsorPreferences window, go toVersion Control>GitHub.
- In the same
- Add GitHub Account:
- Click the
+(Add) button.
- Click the
- Use the token-based login.
- On the opened window select required token scopes. At this step you define what IDE can do using your token.
- Copy generated token.
Important
This is the only time you see this token, so save it if you plan to use it later somewhere else
- Paste copied token to the
Add GitHub Accountpopup window.
- Find added account at the Accounts list.
- Click
OKto save the account.
- Regularly commit and push your changes to avoid losing work.
- Frequently pull changes if you’re collaborating with others.
- Make use of branches for features or bug fixes to maintain an organized workflow.






