The files panel reflects your git workspace while working on changes locally in your repository. It offers staging, committing, stashing, and clearing your local workspace. This post will introduce all details of the files panel below.

Series index

lazygit with status panel highlighted

Overview

The status panel is located at the top left and has the hotkey 1.

The status panel

In the above screenshot, the status panel will tell you that I'm on the dev branch tracking a remote dev branch and the remote has one commit to fast-forward to.

From the visual, that's all you will get. The menu will allow you the following additional actions.

Refresh repository and current branch

Lazygit polls for file changes every 10 seconds and auto-fetches the repository every minute by default. You can explicitly refresh the repository (R). This command also works in the files panel.

You can also pull p and push P to the current checked out branch from within the status panel.

Quick switching between repositories

If you handle multiple repositories with lazygit, enter () opens a menu to quickly switch to another repository.

Lazygit configuration file

The status panel has keyboard shortcuts for manipulating the configuration file. can open (o) and edit (e) the lazygit configuration file.

Please see the lazygit configuration guide for more information on what the configuration file offers.

Show the git log over all branches

Hit a to show a log view of all branches within the main panel.

log in main panel

That's all I have now for the status panel.

Next post in series

Click here for the next post: Deep dive: files panel