Skip to main content
One&Zero
Associate II
December 9, 2019
Solved

How can I use git in stm32CubeIDE.

  • December 9, 2019
  • 12 replies
  • 36467 views

I can enable git in Atollic TrueStudio by setting Customize Perspective.

This topic has been closed for replies.
Best answer by Johnny1

In STM32CubeIDE go to the menu "Help->Eclipse Marketplace..." and then look out for and install "EGit - Git Integration for Eclipse"

After installed, when you right click on the project to see the project properties, you can find the menu entry "Team" which contains the Git stuff.

12 replies

Johnny1
Johnny1Best answer
Graduate II
December 9, 2019

In STM32CubeIDE go to the menu "Help->Eclipse Marketplace..." and then look out for and install "EGit - Git Integration for Eclipse"

After installed, when you right click on the project to see the project properties, you can find the menu entry "Team" which contains the Git stuff.

Markus GIRDLAND
ST Employee
December 9, 2019

Johnny is correct, if you install Git from the marketplace it will show up. However, you can also start CubeIDE with -unhideTeamSynchronizing if you prefer.

One&Zero
One&ZeroAuthor
Associate II
December 10, 2019

Now, I know about the use of git.Where can I learn about TeamSynchronizing?thanks.

Johnny1
Graduate II
December 10, 2019

I think this is the wrong forum to discuss about the basics of version control and team work. Maybe start here: https://www.atlassian.com/git/tutorials

Grubi
Visitor II
October 21, 2020

Hello! I would like to "reactivate" this old discussion. I ran into some problems regarding CubeIDE and git.

As already recommended I installed EGit intor CubeIDE 1.4.2.

I could git-commit and git-push it to our sever, so that colleagues may also work on the project.

When they import the project with the File->Import->Projects from Git the project seems to import properly and can also be compiled.

But invoking the cube configurator and changing some mcu settings on my colleagues IDEs completely destroys their project. Mostly it deleted the src folder of the project during updating the code after saving the .ioc file.

Does anybody have a working setup of CubeIDE + git?

FCamp.1
Associate III
January 23, 2021

Don't try EGit with stm32CubeIDE version 1.5.1, it kills the whole IDE!!!

I tried to install it and after restart no Git stuff inside the team menu.... I then decided to uninstall to re-install but after the uninstallation of the plugin nothing was working anymore in the IDE... no more possible to compile, no more possible to launch the MX interface.

Finally i have been forced to uninstall the entire CUBEIDE.

Warning, stay away...

Filippo

!BBQ!
Associate
January 30, 2021

I can confirm that. I have only recently switched to STM32CbeIDE. I thought I would install a few plugins. EGit has left the IDE completely non-functional. 

Grubi
Visitor II
February 1, 2021

Hi!

Other than previous posts - With CubeIDE 1.5.1 I finally got EGit working.

Here are some comments/findings I made:

CubIDE in general (maybe related to macOS):

  • Never do a CubeIDE update - always completely delete the application and download the new Version. Updating, and even overwriting with a new version, made the CubeMX GUI unusable.

EGit:

  • Install the EGit Plugin from the marketplace
  • For putting my existing project under Git version control I allowed the IDE to move my project to ~/git/Project_Name/Project_Name
  • After putting your project under git version control make sure these lines are in the .gitignore: /Debug/; /Release/; /.settings/; .mxproject
  • In my case the ***.launch file contained some absolute paths, I changed them to relative ones
  • When importing the project on another computer I used Import/Git/Projects from Git (Do NOT use Projects from Git(with smart import))

Hopefully these comments could help someone.

Michael

JSchn.4
Associate II
February 19, 2021

Hmm, I am a newbie to STM32Cube as well, but so far I am fairly impressed, by the professional architecture of this IDE. So I tend to believe, that we must do something wrong.

I discovered, that the GIT integration changes the project structure. This is, what the project looked like before connecting it to the GIT:

And this is, what it looks like afterwards:

Dont really understand why it moves the independent projects for the two different cores unter one project.

Hope anybody can advice!

Johannes

JSchn.4
Associate II
February 19, 2021

0693W000008GhNRQA0.png0693W000008GhNWQA0.pngPictures did not copy

Cartu38 OpenDev
Graduate II
February 20, 2021

Not related to Git I guess. Both snapshots are same just graphical view setup is not same.

Rely on project explorer view than enable hierarchical view:

0693W000007YzdUQAS.jpg

JSchn.4
Associate II
May 5, 2021

Issue has been solved with the new version. Thanks a lot!