How to use Version Control (Git) in iCube Engineer
| Version Number | Description |
|---|---|
| 1.0 | Initial Version written with ICE 2022.9 SP9 |
This application note show how to use version control feature in ICE with Git.
Version control is a system that records changes to the project file (saved as a flat file *.pcwef) so that you can recall specific versions later.
1. Supported Components
| Component Name | Version |
|---|---|
| iC9200 series | ≥ 2022.9 |
2. Solution details - Version Control local on the computer
- Make sure to have Git installed on your PC.
- If not, here is the link to install it :https://git-scm.com/downloads
2. In the ICE program, open the Window "Version Control" and select in the Version Control list box "Git"
3. Press "Create repository" to select an existing folder or create a new one in any directory on the computer.
4.Press "Get working copy" and select/create a second folder on the computer. This is the directory where you will save the project.
![]()
5. Save the project as "Uncompressed Project Node (*.pcwef)" in this working copy folder.
![]()
6. Starting at this point, the repository is ready and the following interface appears :![]()
Note: It is possible to modify the above folder by clicking on "Tools":![]()
2.2 Save changes
- After Making the first change in the program, press the Save button
, the "Pending Changes" window shows all the changes done from the previous version to the new save version :
![]()
2. Then Press Commit to commit the changes in the local repository of the computer
![]()
Note: It is possible to Push and Pull with the button Push & Pull to/from a remote server.3.All the previous 'Pending Changes" should disappear of the "Pending Changes" tab, and a new line is now added to into "History" that regroup all of this changes for this commit:![]()
2.3 Go back to a Previous version
After multiple modification made it is possible to revert to a previous version, or come back to a new one.
- Select the version wished in to go back and Press "Revert to revision"
![]()
2. Pop Up --> Yes![]()
3. The Following snack bar information should appear and after a short moment the Program is revert to the specified version:![]()
In some scenario, the following Pop Up may appear:![]()
2.4 Export Revision
- It is possible to export a revision as another program which is not in the git anymore by pressing "Export Revision"
![]()
, the "Pending Changes" window shows all the changes done from the previous version to the new save version :