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.
- Click on a file to view its diff
- Click Stage Hunk to stage individual hunks
- 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
- Stage your changes
- Enter a commit message in the text field
- 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.
- Stage any additional changes
- Check Amend before committing
- Edit the commit message if needed
- Click Commit
WARNING
Only amend commits that haven't been pushed. Amending shared commits rewrites history and causes problems for collaborators.
