Skip to content

Commit e74cf7b

Browse files
committed
20250603 - troubleshoot git config accessing incorrect user folder
1 parent 63e9a44 commit e74cf7b

1 file changed

Lines changed: 13 additions & 0 deletions

File tree

git.Rmd

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -242,6 +242,19 @@ Enter your HawkID as your username and your UI `GitLab` Personal Access Token as
242242
If you do not receive a prompt to enter your username and password, try removing the saved GitHubcredentials from Windows Credential Manager:
243243
https://github.com/desktop/desktop/issues/8860#issuecomment-2211812646
244244

245+
## GitHub trying to connect to `git config` in another user's User folder
246+
247+
To resolve, ensure that the `HOME` environment variable is set to your user folder (assuming that it is not a shared computer)
248+
249+
To do so:
250+
- Type "Environment Variables" into the search bar of your Windows task bar
251+
- Click "Open" under the result of "Edit the system environment variables"
252+
- Enter an admin user/password when prompted
253+
- Click "Environment Variables" at the bottom right corner of the popup window that should open after entering admin credentials
254+
- Find the `HOME` environment variable and click it to select (highlighted blue)
255+
- Click "Edit" and update the path to match your Users folder
256+
257+
245258
## `GitHub` shows all files as being changed even though the files haven't changed
246259

247260
Windows and Mac use different line endings (https://github.com/Microsoft/WSL/issues/184; archived at https://perma.cc/F8UX-YJP3):

0 commit comments

Comments
 (0)