2 TERMINOLOGY This section explains the terms used in this document. *1: "TortoiseGit” is open source software and can be downloaded from (https://tortoisegit.org/download/). 6 Sysmac Studio Project Version Control Function Startup Guide (P125) Terms Description Sysmac Studio Version Control Function The function to control the changes and records of the Sysmac Studio projects. It is referred to as “Sysmac Studio version control function” or “version control function”. Git™ An open source software used for version control. This works with the Sysmac Studio to control the versions of the Sysmac Studio projects. “TortoiseGit”*1 Client software used for the version control system.
We operate the version control functions using the “TortoiseGit” menus called from the Sysmac Studio. Repository A location to save the data controlled by Git. The version controlled Sysmac Studio project data and its change records are saved. Remote repository A repository on the network such as a server, or in a shared folder. Local repository A repository created in the computer of each user. Development by multiple developers To develop a project program sharing the program among multiple developers. It is important to manage the change contents and operation timing of each developer.
Derived development To develop a machine program using a program of another machine according to the machine variation. It is important to reflect all changes made for the program of common functions to all the machines and to manage the changes for a specific machine. Push Operation to apply the changes in the local repository to the remote repository Pull Operation to apply the changes in the remote repository to the local repository Change set Information of accumulated changes in a project. With a Sysmac Studio project, this means the information of changes such as adding a global variable or a ladder rung.
The version control function of the Sysmac Studio uses “change set” as a chunk of changes to restore the project data to a certain state or to show the list of changes in the chronological order. Commit An operation to register a change set, a chunk of information of changes in the project data in the local repository which is controlled by Git. Sysmac Studio has its Save function but it saves data to the working folder. To register changes to the local repository, perform Commit. When you perform Commit, date/time and user name of the operation are automatically registered besides the change set.
You can register comments (log messages) in addition, which makes it easy to search for change content. Revision When you perform Commit, a change set is registered in the repository with information that makes it easy to search for a change set. At that time, a revision number (a revision identification number) to uniquely identify the change set is automatically applied. When you revert the project to a specific change set, compare a change set with a project under editing, or branch and merge the project, use this revision number to specify the change set. The revision number used in Git is a hexadecimal value of 40 digits generated by the algorithm of SHA-1.