Skip to content

modify

The modify command helps you stage and commit changes to your current branch, with smart handling for new branches versus branches with existing commits. It streamlines the file staging and commit process.

Usage

bash
pq modify [OPTIONS]

Options

OptionDescription
--commit, -cCreate a new commit instead of amending
--message, -m TEXTCommit message for the new or amended commit
--no-amendAlways create a new commit instead of amending

Examples

Interactive File Selection

bash
pq modify

Create a Commit with a Message

bash
pq modify -m "Implement JWT authentication"

Force Creating a New Commit

bash
pq modify --no-amend -m "Add password reset functionality"

TIP

After using modify to commit changes, use pq update to propagate them to child branches.

Released under the MIT License.