Replies: 4 comments 3 replies
|
Hey! 👋 I ran into the same issue recently. The warning safe.directory '*' not absolute usually happens when Git doesn’t recognize the directory you're working in as a "safe" one—this often comes up in CI/CD environments or after switching users. To fix it, you can manually add the current directory to Git’s safe list. Just run this in your terminal (make sure you're inside the project folder): bash: This tells Git that your current working directory is safe and should stop the warning from popping up. Let me know if it works for you or if you still see the error! |
|
Running into that "safe.directory" warning is super common with recent Git updates. It's Git being extra cautious about your repo's ownership or permissions. git config --global --add safe.directory "%(prefix)///FULL/PATH/TO/YOUR/REPO"Just replace git config --global --add safe.directory "*"Be cautious with this one, especially on shared systems, as it broadens the security scope. |
|
Thank you both, unfortunately none of these options worked.
|

Thank you both, unfortunately none of these options worked.
I did get it to work though the process was a little difficult but I'll outline it here for anyone having the same issue:
git config --global --editEscthen:wgpropertiesSecuritytab and clickAdvancedOwnerto what git expects, in my case it was the Administrator user of the computerReplace owner on subcontainers and objects, make sure to check it and clickApply