Skip to content
gitā
Everyday GitStaging

Stage a file, or a single hunk

Local Changes shows what you have changed, split into what is staged and what is not, with the diff beside it.

Try it live

AgentWorking1 agent · 2 subagents
Branchfeature/checkout-v2↑2 not pushed
Pull request#214 Checkout v2: shipping and payment as separate steps#214 open · mira
Checks CIe3b7a10 · 2/3
Preview deployment Ready28 min ago · 2 commentsstorefront-git-feature-checkout-v2.northpier.dev
Local Changes
Unstaged 4
app
checkout
payment
shipping
docs
lib
cart
Staged 1
app
checkout
app/checkout/payment/page.tsx
@@ -12,9 +12,12 @@ export default async function PaymentPage()
1212 const cart = await getCart();
1313 const address = await savedAddress(cart.customerId);
14- if (!address) redirect("/checkout");
14+ if (!address) redirect("/checkout/shipping");
15+
16+ const methods = await paymentMethods(cart.region);
1517
1618 return (
17- <PaymentForm cart={cart} />
19+ <PaymentForm cart={cart} address={address} methods={methods} />
1820 );
@@ -31,6 +34,7 @@ export const metadata
3134 export const metadata = {
3235 title: "Payment",
36+ robots: { index: false },
3337 };

Things to try

  1. Click a file to see its diff.

  2. Click Stage hunk above a block of the diff to stage only that part.

  3. Click Stage all, type a message and press Commit staged.

  4. Use the buttons beside the filter to switch between a tree and a flat list.

  • Unstaged above, staged below

    Two lists, the way git thinks about it. Select one file or several and move them across with Stage or Unstage.

  • One hunk at a time

    Click in a block of the diff and stage only that hunk, so one commit holds one idea.

  • Tree or flat list

    See changed files in their folders, or as a plain list of paths, and filter them by name. Each has a mark for modified, added, deleted, renamed or conflicted.

  • A message that waits

    If you start a commit message and close the tab, the window or the app, it is still there when you come back. There is a draft for each worktree.

  • A menu on every file

    Open it, open it with another app, reveal it in Finder, discard its changes, see its history, or copy its path.

  • Stash

    Put your changes aside with a message. Select the stash in the sidebar later to see what is in it and apply it.

Keep exploring

All features

Download gitā

Free. macOS 14 or later, Apple silicon and Intel.