Git detect dubious ownership in repository

<p>When working in the corporate environment, we usually have a designated user space for each authenticated user on our computer. For example, in Windows, if our username is&nbsp;<code>abc</code>, we have a folder in&nbsp;<code>C:\Users</code>, named&nbsp;<code>C:\Users\abc</code>&nbsp;for all of user&nbsp;<code>abc</code>&rsquo;s files. And if we put our git repository in this folder, you might get the following error message when you perform any git operations, like&nbsp;<code>git status</code>.</p> <pre> fatal: detected dubious ownership in repository at &#39;C:/Users/abc/Projects/my-awesome-project&#39; &#39;C:/Users/abc/Projects/my-awesome-project&#39; is owned by: &#39;S-1-5-32-544&#39; but the current user is: &#39;S-1-12-1-1347659835-1128888854-2982737882-1111120199&#39; To add an exception for this directory, call: git config --global --add safe.directory C:/Users/abc/Projects/my-awesome-project</pre> <p>It&rsquo;s nice to have the solution built in with the error message, but what does it mean, and why does it happen? And what are all the numbers in the user name?</p> <p><a href="https://medium.com/@thecodinganalyst/git-detect-dubious-ownership-in-repository-e7f33037a8f"><strong>Read More</strong></a></p>