Table of Contents
You can successfully install Pycharm in Linux Mint. Now we will learn how to use Pycharm to push your code to GitLab.
I assume that you can check out and clone the GitLab repository to your computer.
Write code and Add version
For example, I will create a file called demo-gitlab.py. When creating a new file, a message board will appear as image below.

It notifies you whether you want to Add version for this file. If yes, click Add right on this window.
If this message does not appear, and your file is red as shown in this picture.

Right click to the file, select Git -> + Add or you press Ctrl + Alt + A. Your file has now turned green.
Recommended Reading: How to install Pycharm community in Linux Mint
Push and Commit code
Here, you will learn how to push your code on GItLab.
In the image below, you will see 2 icons in blue and green colors.

To push your code to GitLab, click on the green icon (or press Ctrl + K).
A Commit window will appear, where you will write your commit message.

Recommended Reading: How to install Gitlab plugin in Pycharm
After you have finished writing the commit message. Click the Commit and Push... button as shown in the image above. And done.
Conclusion
Using Pycharm and GitLab may not be difficult, but for new people it may be a problem.
I myself too, at first I didn’t know how to make it work. I don’t know how to put my code on GitLab with Pycharm.
Now you can do it easily.
(This is an article from my old blog that has been inactive for a long time, I don’t want to throw it away so I will keep it and hope it helps someone).