Post
Share your knowledge.
Setting Foundry
While trying to set my foundry after installing using the "forge init" command, i got this error:
Error: failed to commit (code=Some(128), stdout="", stderr="Author identity unknown\n\n*** Please tell me who you are.\n\nRun\n\n git config --global user.email "you@example.com"\n git config --global user.name "Your Name"\n\nto set your account's default identity.\nOmit --global to set the identity only in this repository.\n\nfatal: unable to auto-detect email address (got 'user@MACs-MBP.(none)')")
Though I was able to get all the folder I needed, except from "lib" and ".gitmodules" hope this won't affect me in future. And i also try using the "forge init --force" still the same
- Cyfrin Updraft
- Foundry
- Solidity
Answers
2The Global git configuration on your system is yet to be setup. Use the following commands in your terminal
// Bash
git config --global user.email "your.email@example.com"
git config --global user.name "Your Name"
Do you know the answer?
Please log in and share it.
Cyfrin Updraft is an education platform specializing on teaching the next generation of smart contract developers