commit
Commit is a convenience command that combines three operations:
- Set/update the description for the current change (describe)
- Push all changes to the server (push)
- Create a new empty change for future work (new)
This command streamlines the common workflow of finishing work on the current change and starting fresh. It’s similar to ‘git commit’ but remember that in Pogo, your work is continuously saved to the server rather than being staged locally first.
The command will:
- Open an editor for the description (unless -m or —no-edit is used)
- Upload all your changes to the server
- Create a new change with the current change as parent
- Switch to the new change automatically
- Display the updated change history
This is ideal when you’ve completed a logical unit of work and want to start on something new while preserving the current state.
pogo commit
--description
,-m
: Description for the change --no-edit
: Skip the describe step
Examples
Section titled “Examples”# Commit with an editor for the descriptionpogo commit
# Commit with a description from command linepogo commit -m "fix: resolve database connection timeout"
# Commit without changing the existing descriptionpogo commit --no-edit
# Typical workflowpogo describe -m "feat: add user authentication"# ... make changes ...pogo push# ... make more changes ...pogo commit # Finalize and start new change