foundry devops installation command '--no-commit' added at the end. #865
Replies: 3 comments 3 replies
-
Same issue with me, ive checked git, forge, and jq versions , its OK |
Beta Was this translation helpful? Give feedback.
-
if i try to install it shows permission denied
|
Beta Was this translation helpful? Give feedback.
-
This is a common issue when installing dependencies in a forge project because forge initializes a Git repository by default. The error happens because forge install interacts with Git to add a submodule, but it requires a clean working directory. If you have untracked files or uncommitted changes, the installation fails. To fix this: Run git status to see the current state of your Git repository. If there are untracked or changed files: git add .
git commit -m "Save changes before installing dependencies" Ignore unwanted files by adding them to your .gitignore file if you don’t want Git to track them or remove unwanted files: git clean -f Run: forge install Cyfrin/foundry-devops If you don’t want to commit your changes yet, you can use the --no-commit flag to bypass this requirement and later add them manually to git if you want to: forge install Cyfrin/foundry-devops --no-commit If I remember correctly Patrick use the --no-commit flag, what lesson are you referring to? |
Beta Was this translation helpful? Give feedback.
-
Hi all,
I don't know why so many commands aren't matching Patrick's versions.
Anyway, here's what I did today.
When I install foundry devops on terminal,
This was the command on the github repo. So I tried.
I receive this error.
and I tried this and worked perfectly.
I thought some people should've faced this issue as well.
Beta Was this translation helpful? Give feedback.
All reactions