dev@local: ~/project — git
dev@local~/project$git status
On branch main
Your branch is ahead of 'origin/main' by 2 commits.
(use "git push" to publish your local commits)
Diagnostics Translation
Your local branch contains commits that have not yet been pushed to the remote server.
waiting for resolution...
LowVersion Control System

Reviewed for reference consistency: April 11, 2026

Code is Safe

SECURE

Git has paused the operation to protect your code. No data has been lost or corrupted.

What To Know

This status means local history has progressed beyond the remote-tracking branch; it is informational, but it also shows the server has not received those commits yet.

Where Did It Fail?

Working Tree
Your local files
add
Staging Index
Prepared changes
commit
Local Repo
Commit history
push/fetch
Remote Server
GitHub/GitLab
Git halted to protect the uncommitted files in your active working directory.

Commands That Trigger This

$git status
Running at the end of the day after making several local commits
$git fetch
Running and discovering the server has no recent changes, but you do

Technical Background

01

Git is a distributed system. Making a commit only saves it to your local hard drive.

02

The message simply means: 'You have new data here that the server does not know about yet.' Running a push will synchronize the two timelines.

Underlying Causes

You made local commits using `git commit`
You haven't run `git push` recently
You successfully merged a local branch into your current branch

Frequently Asked Questions

It is safe on your computer, but it is not backed up to the remote server. If your hard drive fails right now, those commits will be lost.

Related Git States