Skip to content

Staging & Commits

The staging area (index) lets you prepare changes before committing. You can stage entire files, specific hunks, or even individual lines.

Staging Changes

Stage Individual Files

Click the + button next to a file to stage it Or select multiple files and click Stage Selected

Stage Hunks

Stage specific parts of a file instead of the entire file.

  1. Click on a file to view its diff
  2. Click Stage Hunk to stage individual hunks
  3. Or click line numbers to stage specific lines

Stage All

Click Stage All in the staging panel toolbar

Unstaging

Unstage Files

Click the - button next to a staged file Or click Unstage All to unstage everything

Creating Commits

Basic Commit

  1. Stage your changes
  2. Enter a commit message in the text field
  3. Click Commit or press Cmd/Ctrl + Enter

Commit Message Tips

  • First line: Brief summary (50 chars or less)
  • Leave a blank line
  • Additional details if needed
Add user authentication

Implements JWT-based auth with refresh tokens.
Includes login, logout, and password reset endpoints.

Amend Last Commit

Modify the previous commit - useful for fixing typos or adding forgotten files.

  1. Stage any additional changes
  2. Check Amend before committing
  3. Edit the commit message if needed
  4. Click Commit

WARNING

Only amend commits that haven't been pushed. Amending shared commits rewrites history and causes problems for collaborators.

Released under the MIT License.