Solidity – Why Does the Error Occur When Using Forge Init?

contract-developmentforgefoundrysolidity

using forge init always throws this error

I am trying to use foundry, whenever i use forge init on my mac it throws this error and doesn't install forge-std lib for me.
According to the error, it said i should add the –no-commit option but whenever i do so forge-std isn't installed.

please how do i resolve this?

Best Answer

forge init requires that from the folder you are calling it, does not have a git folder already installed.

Hope it helps!

Related Topic