diff --git a/git-troubleshoot.md b/git-troubleshoot.md new file mode 100644 index 0000000..0086e6b --- /dev/null +++ b/git-troubleshoot.md @@ -0,0 +1,13 @@ +# Git Troubleshooting + +## Rights to access repo +- Symptom + - ![](./images/git-rights-error.PNG) +- Cause + - Git has recently (due to a CVE) started caring about repository ownership +- Remedy + - Add the `repo to safe.directory` + ```sh + $ git config --global --add safe.directory '*' # For the current user and all repositories + $ git config --system --add safe.directory '*' # For all users and all repositories + ``` \ No newline at end of file diff --git a/images/git-rights-error.PNG b/images/git-rights-error.PNG new file mode 100644 index 0000000..f5bc166 Binary files /dev/null and b/images/git-rights-error.PNG differ