GitHub Connection with PyCharm, How to Run Git Commands on PyCharm.

26.03.2025
91

How to run Git commands between PyCharm, a software editor used especially by Python developers, and GitHub?

GitHub Connection with PyCharm, How to Run Git Commands on PyCharm.

How to GitHub connection with PyCharm, which we use to write Python projects, to GitHub? In our previous articles, we had two different articles about Git commands and the integration of the GitHub system. If you want to take a look, I’ll leave the link here and move on to using GitHub with the PyCharm editor.

Create a Python Project in PyCharm

pycharm ile github bağlantısı

As a first step, open the PyCharm editor and create a python project. I created a project called pyRemoveBackground and wrote some python code in it. For now it doesn’t matter what the code is, you can even write print(“Hello Python”).

Running Git Commands on the PyCharm Git Menu

There are two ways for this. You can run it by manually typing git commands through the PyCharm Terminal. Or you can run it via the VCS (Version Control System) feature in the PyCharm menu.

github connection with pycharm

Click on the Enable Version Control Integration tab and you will be asked which version control system you want to use. If you select git here, from now on the name of this menu will be Git, not VCS.

After this process, you can perform Git operations from the PyCharm Terminal screen or from the Git tab in the menu.

PyCharm Git Commit Tabs

When you click on the“Commit…” tab in the Git menu, the Commit window on the left side of the screen will ask which of the project files will be uploaded/not uploaded. At this stage, select the files to be transferred to GitHub and write the commit description and click the Commit button.

pycharm project git commit

You can easily run all Git actions under the PyCharm Git menu. GitHub connection with PyCharm.

Git Commands >>

How to use GitHub >>

PyCharm Push Tabs

If this is the first time you will use the Push tab when connecting to GitHub with PyCharm, you need to set up GitHub project settings.

Define Remote Settings

When you enter the Push tab, it will ask you to set the GitHub settings of the project. Name and URL information is requested here. For the URL, go to GitHub and create a new repositories here and copy the URL link and enter the data as in the bottom picture.

Repositories: https://github.com/omersahintr/pyRemoveBackground

GitHub Login or GitHub Token Settings

In the next step, you will see a screen asking for password or token settings for the connection. You can either allow PyCharm to connect to GitHub with your GitHub Login credentials or with the Token you created. I recommend using the Token method for security reasons. This way, we can connect PyCharm to GitHub without any problems.

If you don’t know how to create a token on GitHub, you can take a look at our article “How to Use GitHub“.

PyCharm has a tab at the bottom left where you can run Terminal commands. You can run Git commands from this tab.

Git Commands with PyCharm Terminal

After configuring Git on the VCS menu we have just shown, you can run all Git commands on the PyCharm Terminal screen just like we did before in Terminal.

MAKE A COMMENT
COMMENTS - 0 COMMENTS

No comments yet.

Bu web sitesi, bilgisayarınıza bilgi depolamak amacıyla bazı tanımlama bilgilerini kullanabilir.
Bu bilgilerin bir kısmı sitenin çalışmasında esas rolü üstlenirken bir kısmı ise kullanıcı deneyimlerinin iyileştirilmesine ve geliştirilmesine yardımcı olur.
Sitemize ilk girişinizde vermiş olduğunuz çerez onayı ile bu tanımlama bilgilerinin yerleştirilmesine izin vermiş olursunuz.
Çerez bilgilerinizi güncellemek için ekranın sol alt köşesinde bulunan mavi kurabiye logosuna tıklamanız yeterli. Kişisel Verilerin Korunması,
Gizlilik Politikası ve Çerez (Cookie) Kullanımı İlkeleri hakkında detaylı bilgi için KVKK&GDPR sayfamızı inceleyiniz.
| omersahin.com.tr |
Copyright | 2007-2025