Overview
Special commands are unique to Learn Git Branching and provide functionality for navigating levels, getting help, and controlling the learning environment. These commands don’t correspond to real Git operations.Level Navigation
level
Regex:/^level\s?([a-zA-Z0-9]*)/
Description: Load a specific level by name or open level selector
Examples:
levels
Regex:/^levels($|\s)/
Description: Show all available levels
Examples:
sandbox
Regex:/^sandbox($|\s)/
Description: Enter sandbox mode (free practice without level objectives)
Examples:
exit level
Regex:/^exit level($|\s)/
Description: Exit the current level and return to level selection
Examples:
Level Help
show goal
Regex:/^(show goal|goal|help goal)$/
Description: Display the current level’s goal visualization
Examples:
hide goal
Regex:/^hide goal$/
Description: Hide the goal visualization
Examples:
show solution
Regex:/^show solution($|\s)/
Description: Display and optionally execute the level solution
Examples:
objective
Regex:/^(objective|assignment)$/
Description: Show the level objective and description
Examples:
help level
Regex:/^help level$/
Description: Show help specific to the current level
Examples:
start dialog
Regex:/^start dialog$/
Description: Replay the level’s introductory dialog
Examples:
Reset and Undo
undo
Regex:/^undo($|\s)/
Description: Undo the last command
Examples:
You can undo multiple times to step back through your command history.
reset
Regex:/^reset( +--forSolution)?$/
Description: Reset the level to its starting state
Examples:
reset solved
Regex:/^reset solved($|\s)/
Description: Reset your solved status for all levels
Examples:
Level Building
build level
Regex:/^build +level\s?([a-zA-Z0-9]*)( +--skipIntro)?$/
Description: Enter level builder mode to create custom levels
Examples:
export tree
Regex:/^export +tree$/
Description: Export the current tree state as JSON
Examples:
import tree
Regex:/^import +tree$/
Description: Import a tree from JSON
Examples:
export level
Regex:/^export +level$/ (mentioned in code patterns)
Description: Export a custom level definition
import level
Regex:/^import +level$/
Description: Import a custom level definition
Examples:
importTreeNow
Regex:/^importTreeNow($|\s)/
Description: Internal command to import tree immediately (used after import tree dialog)
importLevelNow
Regex:/^importLevelNow($|\s)/
Description: Internal command to import level immediately (used after import level dialog)
General Help
help
Regex:/^help( +general)?$|^\?$/
Description: Show general help information
Examples:
git help
Regex:/^(git help($|\s)|git$)/
Description: Show Git command help with links to documentation
Examples:
show
Regex:/^show$/
Description: Show available show commands
Examples:
show commands
Regex:/^show +commands$/
Description: Display all available commands with options and descriptions
Examples:
This command displays commands with documentation links for Git commands.
Display and Visualization
flip
Regex:/^flip$/
Description: Flip the tree visualization vertically (reverse commit arrow direction)
Examples:
refresh
Regex:/^refresh$/
Description: Refresh the tree visualization
Examples:
Localization
locale
Regex:/^locale +(\w+)$/ and /^(locale|locale reset)$/
Description: Change or reset the interface language
Examples:
disableLevelInstructions
Regex:/^disableLevelInstructions$/
Description: Disable level instruction dialogs
Examples:
Sharing
share permalink
Regex:/^share( +permalink)?$/
Description: Generate a shareable permalink for the current state
Examples:
Utility
clear
Regex:/^clear($|\s)/
Description: Clear the command output terminal
Examples:
delay
Regex:/^delay (\d+)$/
Description: Set animation delay in milliseconds
Examples:
echo
Regex:/^echo "(.*?)"$|^echo (.*?)$/
Description: Echo a string to the terminal output
Examples:
rollup
Regex:/^rollup (\d+)$/
Description: Combine the last N commands into a single command
Examples:
alias
Regex:/^alias (\w+)="(.+)"$/
Description: Create a custom command alias
Examples:
unalias
Regex:/^unalias (\w+)$/
Description: Remove a custom alias
Examples:
Unix-Style Commands
ls
Regex:/^ls( |$)/
Description: Displays message about file system (not functional)
Examples:
cd
Regex:/^cd( |$)/
Description: Displays message about directories (not functional)
Examples:
ls and cd are not functional as Learn Git Branching doesn’t simulate a file system.Mobile
mobile alert
Regex:/^mobile alert($|\s)/
Description: Internal command for mobile compatibility alerts
Command Chaining
You can chain multiple commands with semicolons:Golf Mode Commands
Commands that do not count toward golf scoring:show solutionshow goalobjectivehelp levelstart dialog- All information/display commands (show commands, help, etc.)
undo(doesn’t undo the move count)
Internal Commands
Some commands are used internally by the application:importTreeNow- Used after import tree dialogimportLevelNow- Used after import level dialogreset --forSolution- Used when showing solutionsrollup- Used by command history UImobile alert- Mobile compatibility checks
See Also
Git Commands
Standard Git command reference
Overview
Command system overview