---
title: "Stage lines and hunks"
description: "Stage part of a file before you commit, so one commit holds one change and the lines you skip stay in the working tree for the next one."
url: https://getgita.app/ja/guides/stage-lines
lang: ja
---

# Commit only the lines you mean

A file can hold two changes. The commit should hold one.

Updated 2026-11-17

## The short answer

A commit should hold one change. When a file holds two, stage the lines that belong together and leave the rest in the working tree.

## One file, two changes

Git can stage a whole file, a hunk, or a single line. The lines you leave unstaged stay in the working tree for the next commit. That is how a branch's history stays readable: each commit is something you can name.

## How gitā stages

The changes view lists the files. Open one and stage a hunk, or the lines inside it. The rest stays where it is. The commit message sits with the staged set, and the graph updates when you commit.

The live view is on the [Staging](https://getgita.app/ja/features/staging) page.

## After the commit

What you left unstaged is still the working tree. Stage it as the next commit, discard it, or stash the set if you need the branch clean for something else. Stashes are listed with the repository.

## Questions, answered

### Can I stage part of a file?

Yes. Stage a hunk or individual lines. The lines you skip stay unstaged.

### Where do the unstaged lines go?

They stay in the working tree, ready for another commit, a discard, or a stash.

[All guides](https://getgita.app/ja/guides.md)

- **macOS 版をダウンロード:** https://github.com/rolottr/gita/releases/latest
- **GitHub で見る:** https://github.com/rolottr/gita

---

Apple, macOS and Mac are trademarks of Apple Inc. Git is a trademark of Software Freedom Conservancy. GitHub is a trademark of GitHub, Inc. Vercel is a trademark of Vercel Inc. Claude is a trademark of Anthropic, PBC. gitā is independent software and is not affiliated with any of them. Issues: https://github.com/rolottr/gita/issues
