Git support

CodeLobster IDE has integrated source control and includes Git support in-the-box. CodeLobster IDE will leverage your machine's Git installation, so you need to install Git first before you get these features.

[Note]Note

Git support is a part of CodeLobster IDE - Professional version

From within CodeLobster IDE, you can perform the following actions:

[Caution]Caution

  1. You should specify a path for your Git file in the Preferences | Git to work with it:

  2. File .git should be located in the root folder of your project. After that all Git items will be available in the menu of the Project Explorer window.

You can run all commands in the Project Explorer by right-clicking on any file or folder name:

Also, you have an ability to assign any hotkeys in the Preferences for it: Hot Keys

Add files

If you want to add the file to your local repository, you should:

  1. Select the files to add in the Project Explorer window and right-click to view the context menu.

  2. Choose Git | Add context menu item.

Staging and committing

To stage the files for committing:

  1. Right-click in Explorer explorer window

  2. Select Git | Commit context menu item.

  3. Stage the files for commit in the Stage files dialog.

A dialog box allows you to enter a commit message and stage files to commit will be processed

After staging the files, on the bottom of the view, you can provide a commit message and commit them to your local repository.

Commit all

You can stage all the files and commit by using the Git | Commit all context menu item.

Pull

To push your local repository changes to the remote repository:

  1. Right-click in the Project Explorer window on any file or folder.

  2. Select Git | Push context menu item.

Push

To bring the changes from the remote repository into your local repository

  1. Right-click in the Project window on any file or folder.

  2. Select the Git | Push context menu item.

Log for selected

You can view the change history of an individual file in Git, complete details with what has changed. To view all the logs of a selected file:

  1. Right-click in the Project window on the necessary file or folder.

  2. Select the Git | Log for selected context menu item.

History

You can trace changes to lines in a file and discover how parts of the file evolved over time. To view file history:

  1. Right-click in the Project Explorer window on the file.

  2. Select Git | History menu item.

  3. In the History dialog box, perform any of the following actions:

    • View details about the selected commit.

    • View files changes of the selected commit.

Compare

Compare command shows the difference between the current version of the file and any version in the repository:

  1. Right-click in the Project Explorer window on the file.

  2. Select Git | Compare menu item.

  3. In the Compare dialog box, you can perform any of the following actions:

    • View file changes of the selected commit.

Work with branches

You can create, checkout, and merge branches directly within CodeLobster IDE.

Create

Creates a new branch that contains your version of the document so that you can merge the changes at a later time after the conflicts have been solved. To create a new branch:

  1. Right-click in the Project Explorer window on any file or folder.

  2. Select Git | Branches | Create context menu item.

  3. Provide the name of your new branch and press OK. CodeLobster IDE creates the branch and switch to it.

Checkout

To checkout to an existing branch:

  1. Right-click in the Project Explorer window on any file or folder.

  2. Select Git | Branches | Checkout context menu item.

  3. Choose the branch to switch.

Merge branches

To merge an existing branch with another one:

  1. Right-click in the Project Explorer window on any file or folder.

  2. Select Git | Branches | Merge context menu item.

  3. Choose the branch to merge into.