[Git] fatal: Not a valid object name:'master'.

The error I got when I tried to branch using Sourcetree. The main operation is in Sourcetree.

The content simply meant "there is no object named'master'".

At the time of creating the file, there is no problem because "init" in terminal operation is done.

Because it's because you can't commit Open the file created with an editor like VScode Create a file like sample.txt If you give a character string (← because it needs to be changed as well as created) ok

After that, it is displayed in the history If you commit, you will be able to branch.

You can't branch before you create some kind of file.

Recommended Posts

[Git] fatal: Not a valid object name:'master'.
[Rails] Error that occurred in automatic deployment by Capistrano (fatal: not a valid object name: master)