Skip to main content

Known Issues

--initial-branch=main Error

Since a recent update, git tells you to use the command git init --initial-branch=main when wanting to push an existing folder.

This can lead to an error regarding the --initial-branch flag not existing. If this happens you will need to update your GIT Bash for windows.

Before the Update:

  • Quit PHPStorm
  • Quit every GIT Bash Instance
  • Check your Taskmanager for the process ssh.exe. Kill it.

Now you can update GIT Bash with the command:

git update-git-for-windows

Alternatively - if your Bash is between version 2.14.2 and 2.16.1 - use:

git update

!> If your Version is EVEN OLDER, Uninstall Git Bash and re-download.

Restart Windows and you will be able to use the --initial-branch flag in your command.