% git log
fatal: your current branch 'main' does not have any commits yet
If you are within your git local directory and you run git log command and you get the above error, the reason is, this is a new branch and you have not committed anything yet to generate git commit logs.
✏️ This is rather a warning and not an error :)
Note: Even if you add some files to the staging area, you will see this message, until you commit something.

Provide Feedback For This Article
We take your feedback seriously and use it to improve our content. Thank you for helping us serve you better!
😊 Thanks for your time, your feedback has been registered!
Comments & Discussion
Facing issues? Have questions? Post them here! We're happy to help!