How to resolve the Git issue - There is no tracking information for the current branch

Last modified: May 24, 2024

The following error typically means that the current branch in your Git repository is not linked to any remote branch.

There is no tracking information for the current branch.
Please specify which branch you want to merge with.
See git-pull(1) for details.

	git pull <remote> <branch>

If you wish to set tracking information for this branch, you can do so with:

	git branch --set-upstream-to=origin/<branch> master

To avoid this error, you need to make sure you have made an initial commit to your empty local repository using the following commands:

git commit --allow-empty -m initial

git push