View: Git Branches
Symbol:
Corresponding Git command: git branch
Function: The local Git branches are displayed and managed in the view. These can be branches which are already tracking a remote branch, or branches which exist purely locally and do not contain any link to a remote repository.
Call: menu
Requirement: At least one commit exists in the repository.
![]() | The view is refreshed. |
| Opens the Create New Branch dialog to create a new local branch as a copy of the currently selected local branch (see above) |
| The selected branch is deleted, even if the branch has not yet been merged completely. Note: The current branch cannot be deleted. |
| As a result of the A checkout is prevented by uncommitted changes. When dealing with a remote branch – an entry under Remote (<n>) – the following options are possible:
|
( | Clicking the button will execute the command directly. Alternatively, you could also set options for it. To do this, use the Merging requires the name and email address of the user. This information is taken from the Git settings. If this is not possible, then a dialog prompt opens. The user name and email address can be changed in the Merge Branch dialog. When you confirm the request (dialog prompt) whether or not you really want to commit, the commits of the currently selected branch are committed to the current branch. The current branch is the one whose status is now in the working directory. (check mark in the Current column) If conflicts or relationship issues occur while merging, then they have to be resolved first. Depending on the case and the set merge options in the Branches view, automated actions will run or manual actions are necessary. If a conflict cannot be resolved automatically, then this is indicated in the Status & Staging view. For conflict resolution in the first step, pay attention to the context menu commands provided in the Status & Staging view. As long as the merge operation has not been completed, the status info The Merge action requires the name and email address of the user. This information is taken from the Git Project Settings. If this is not possible, then a dialog prompt opens. |
| Opens the Set upstream remote for Branch dialog Here a branch corresponding to the local branch is created and the link with it set up on the linked remote repository (usually named "origin" and located on a server, for example). |
| Opens the Track a remote branch dialog Here the local branch can be linked with an available representative of a remote repository (remote branch). This allows for an exchange of commits (Git operations Pull and Push) between the local repository and remote repository. |
(
| The status of the tracked remote repository branch is fetched in the local branch ( The Pull action requires the name and email address of the user. This information is taken from the credentials stored on the computer. If this is not possible, then they are queried again in the Git pull <remote branch> dialog. For more information about the credentials for a remote repository, see: Credentials needed The Pull with options command explicitly opens this dialog so that settings can be edited. If the Remember me option is enabled for the Name and Email credentials, then the settings from the dialog are saved in the Git configuration file .git/config in the local repository. |
( | If the selected branch is not a tracking branch, then the Push Branch dialog opens. Here you specify the remote branch to be merged into. The commits of the local branch are pushed to the corresponding branch in the remote repository. If the selected branch is a tracking branch, then the action is performed immediately. No dialog opens. |
Compare | The selected branch is compared with the last state of the project in the project storage and the differences are displayed in the comparison view. When two branches are selected, they are compared. |
Filter branches: Local|Remote | By clicking the Local (<n>) and/or Remote (<n>) buttons, the display of local branches and/or remote branches ("representatives" of the branches located in the remote repository) is enabled or disabled in the table. |
Table | Current: Remote: Tracking: Name: Name of the branch Canonical name: Unique name of the branch Example: Remote: Name of the remote repository which the remote branch references (usually Upstream branch canonical name Example: Tracked branch name: Name of the remote branch which is tracked Example: Tracked branch canonical name: Canonical name of the remote branch which is tracked. Example: When a branch tracks a remote branch, the following information is relevant. Attention: This display is refreshed only when a Fetch command is executed: Commits ahead: Number of commits on the local (tracking) branch with which its time is "ahead" of the remote branch Commits behind: Number of commits which the local (tracking) branch is behind the remote branch. |
Dialog: Create New Branch
Corresponding Git command: git branch --copy
Symbol:
Function: Create a new local branch.
Call: Copy command in the Local Branches view
Requirement: A local branch already exists.
Source branch | Name of the branch which is copied |
New branch name | Input field for the new branch name |
Force |
|
Checkout |
|
Dialog: Merge Branch
Symbol:
Function: Set the merge options for the current merge operation. These options are predefined in the CODESYS options and can be changed for individual cases here in the Merge Branch dialog.
Call: Merge button in the Branches dialog; Merge with options command
Requirement: In the Git Branches view, a branch is selected which should be merged into the currently checked-out branch.
Branch to merge | The branch which is selected in the Git Branches view |
User name and email address | When the text is expanded, the Name and Email can be changed. The contents of the fields is preset from the Git settings |
Git Merge Options | |
Merge Conflict Strategy | For more information, see: Options: Git |
Fast Forward Strategy | For more information, see: Options: Git |
Commit On Success | If the merge was successful, then the resulting changes are committed automatically. |