cancel
Showing results for 
Search instead for 
Did you mean: 

How can I use git in stm32CubeIDE.

One&Zero
Associate II

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

1 ACCEPTED SOLUTION

Accepted Solutions
Johnny1
Associate III

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.

View solution in original post

12 REPLIES 12
Johnny1
Associate III

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

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.

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

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
Associate

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

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 II

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
Associate

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 III

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