Git Console for Advanced Users
The Main Window Space for Workbench includes a status bar. As of version 7.1(16), this bar includes Git Console. When you select the Git Console tab, a console displays similar to the Windows Terminal application, where you can enter Git command line tasks. The Git Console gives the DiveLine Administrator an interactive experience similar to using Git on a terminal. The Git Console implementation in Workbench includes several GNU Readline keyboard shortcuts, command history, and simple auto completion. See https://readline.kablamo.org/emacs.html.
The Git Console is limited to the following commands using the most common flags and options:
Git Command | Description |
---|---|
add | Add file contents to the index. |
branch | List, create, or delete branches. |
checkout | Switch branches or restore working tree files. |
clean | Remove untracked files from the working tree. |
commit | Record changes to the repository. |
fetch | Download objects and refs from another repository. |
help |
Display more information on a specific command. |
log | Show commit logs. |
pull | Fetch from and integrate with another repository or local branch. |
push | Update remote refs along with associated objects. |
remote | Manage set of tracked repositories. |
reset | Reset current HEAD to the specified state. |
status | Show the working tree status. |
tag | Create, list, or delete a tag. |
Examples:
You can learn more about each command on the Git Console by entering git help to list all commands or git <command> --help for help regarding a specific command. You can use the git help command to get a list of flags and terms that enhance the usage of a given command, such as git add. For example, git add --help shows the syntax and usage of the git add command.