Continuing the discussion from Git bash uses different home directory in RStudio 2022.12.0 on Windows:
We need a fix for this. Basic Git workflows use a ~/.ssh/ folder. For all other applications on my computer, this (~/.ssh/) points to C:/Users/godom. For a Terminal window in RStudio, this points to C:/Users/godom/Documents, and I have found no way to change this.