How to use Pycharm to push your code to GitLab

Share this post to your friends !
  • 1
    Share

How to use Pycharm to push your code to GitLab
5 (100%) 1 vote[s]

DanieBlog - 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.

how-to-use-pycharm-to-push-your-code-to-gitlab-01 How to use Pycharm to push your code to GitLab
Add version git to new file.

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.

how-to-use-pycharm-to-push-your-code-to-gitlab-02 How to use Pycharm to push your code to GitLab
New file created has not been added version and has red color. 

Right click to the file, select Git -> + Add or you press Ctrl + Alt + A. Your file has now turned green.

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.

how-to-use-pycharm-to-push-your-code-to-gitlab-03 How to use Pycharm to push your code to GitLab
Click on the green icon to push code to GitLab.

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.

how-to-use-pycharm-to-push-your-code-to-gitlab-04 How to use Pycharm to push your code to GitLab
Write a commit message and push code to GitLab.

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.

If you liked this article, then please subscribe to our YouTube Channel for more video tutorials. You can also find us on Twitter and Facebook.


Share this post to your friends !
  • 1
    Share
If you appreciate what we share in this blog, you can support us by:
  1. Stay connected to: Facebook | Twitter | Google Plus | YouTube
  2. Subscribe email to recieve new posts from us: Sign up now.
  3. Start your own blog with SSD VPS - Free Let's Encrypt SSL ($2.5/month).
  4. Become a Supporter - Make a contribution via PayPal.
  5. Support us by purchasing Ribbon Lite Child theme being using on this website.

We are thankful for your support.

single post bottom banner
«« »»

Got something to say? Join the discussion

Please keep in mind that all comments are subject to our Comment Policy. Your email address will not be published.
This site uses Akismet to reduce spam. Learn how your comment data is processed.