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
| Option | Description |
|---|---|
--commit, -c | Create a new commit instead of amending |
--message, -m TEXT | Commit message for the new or amended commit |
--no-amend | Always create a new commit instead of amending |
Examples
Interactive File Selection
bash
pq modifyCreate 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.