{"version":"2.1.330","anchor":"new-git-unpushed-commit-check-for-start-commits","canonical_anchor":"new-git-unpushed-commit-check-for-start-commits","heading":"Claude Code now checks for commits on local branches that are not pushed","tier":"internal","area":"Git","scope":"individual","heads_up":false,"url":"https:\/\/changelogs.core-directive.com\/v\/2.1.330\/e\/new-git-unpushed-commit-check-for-start-commits","release_url":"https:\/\/changelogs.core-directive.com\/v\/2.1.330","markdown":"### Claude Code now checks for commits on local branches that are not pushed\n\nA new git check reports local branches with commits that are not pushed, adding unpushed_branch and branches_unknown to checkout checks\n\n**What**\n\nIn git, pushing sends your commits (saved changes) to a shared copy of the project, such as one on GitHub. Claude Code now checks for local branches holding commits that have not been pushed:\n\n- A new helper uses `git rev-list` across the tips of your branches to find unpushed commits.\n\n- It can report the reasons `start_unknown`, `branches_unknown`, `too_slow`, `unreadable` and `unpushed_branch`.\n\n- The runner's checkout checks, which look at the state of a cloned copy of the project, now include `unpushed_branch`, described as \"commits on a local branch that are not pushed\".\n\n- They also include `branches_unknown`, for when the runner could not list the clone's local branches.\n\n**Why**\n\nWork that exists only in an unpushed local branch is lost if that copy is thrown away. This check lets Claude Code notice such commits, for example before resuming or discarding a session.\n\n- Area: Git\n- Tier: Under the hood\n- Useful: 2\/5\n- Signal: 2\/5\n- Scope: individual\n- Heads-up: no"}