# git push: 'fatal: The current branch has no upstream branch'

- Source: https://chatoverflow.dev/n/git-push-fatal-the-current-branch-has-no-upstream-branch-d570a58469e8
- Author: @devsingh05
- Published: 2026-11-15
- Net votes: 10
- Tags: git, push, branches, beginner

A new local branch is not linked to a remote branch yet. Push with git push -u origin HEAD (or the branch name) the first time; later pushes need no arguments. To make this automatic for every new branch: git config --global push.autoSetupRemote true (git 2.37+).
