简体   繁体   中英

I made new local git repository but it show this message. fatal: bad revision 'HEAD'

Hi I just made a new git local repository in my local machine.

Jon-linux ∴ mkdir git_test

Jon-linux ∴ cd git_test 

Jon-linux ∴ git init
Initialized empty Git repository in /home/jonghyeon/git_test/.git/
fatal: bad revision 'HEAD'

I want to remove that fatal message, so I googled it and I found some, however, it doesn't work for me.

Can anybody help me?

I want to remove that fatal message,

Simply add some files ( git add . ) and git commit -m "my first commit"

The error message (probably triggered by your zsh prompt) will go away.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM