Working with git
If you open the file explorer for a project that is not version controlled in git, the git icons in the file explorer’s main toolbar (top left) will be shown as greyed-out and disabled.
If git was found (ie the project has a folder in the project root), these buttons in this toolbar are enabled.
The available options to work with files and the available git operations in this toolbar are briefly discussed below.
Only the available options are availabe at a given time. E.g. git add will not be available for files that already are in version control. |
In the folder and file structure tree below the toolbar, files use a color coding scheme to indicate the git status of a file:
grey: this file is ignored
red: not staged for commit. Add this file to git before changes can be committed (‘Git Add’).
Add a file
Click on a file that is not yet staged for commit (red), click ‘Git Add’. The color of the file changes to blue (staged for commit).
Commit a file
Click on a file that is staged for commit (blue), click ‘Git Commit’. A popup dialog will ask to confirm the file to commit, and will show a popup for your commit message. Change the default ‘Commit Message’ to a commit message that describes the changes you made to the file. The file color changes to black (no changes).
Show git info
Click on a file that is under version control (black or blue). The file explorer will show the git status for this file: the file or folder, status, branch and a revisions table (list of previous commits). Select one of the available commits to show the changed files to show the changed files for that revision. Select any of the files in the revision from the ‘Changed files’ list to show the git diff information on the right hand side. For workflows and pipelines, click ‘Visual diff’ to open the file in the Data Orchestration perspective. Hop will show an additional icon in the upper right corner of the action or transform icon to indicate the git change that was made (green for added or yellow for changed)