Everyday Git

Stage, edit and commit changes

Local Changes lists everything that changed since your last commit. Stage what belongs together, fix what needs fixing, and commit it with a clear message.

  • 3 min read
  • RepoBeam 1.8
  • Windows & Linux
Local Changes with unstaged and staged files, a split diff with Stage File and Stage Hunk, and the commit form

In short

  • Stage a whole file, or only one hunk of it.
  • Edit any file straight from its diff, full screen if you need the room.
  • Commit, and push in the same step if you like.

Step by step

  1. Open Local Changes

    Pick Local Changes in the sidebar. Unstaged and staged files are listed separately. Select a file to see its diff.

  2. Stage what belongs together

    Click Stage File, or Stage Hunk above a single block of changes. Stage all and Unstage all work on the whole list.

  3. Fix something in place

    Click Edit File to open the file in the editor. The full screen button gives it the whole window, and Escape brings it back without losing your edits. Save with Ctrl S.

    The file editor in full screen with changed lines marked
  4. Commit

    Write a short subject, and a longer description below it if you need one. Tick Push after commit to push straight away, then click Commit or press Ctrl Enter.

Good to know

  • Right-click a fileStage or unstage it, edit it, copy its path, show it in its folder, or ignore a new file.
  • Fix the last commitTick Amend last commit to replace it with the staged files and your message. If it was already pushed, use Fix sync afterwards.
  • DiscardDiscard all unstaged changes from the Unstaged heading. New files are removed and tracked files restored.