I've just installed the latest RStudio - 2022.12.0 and noticed that Git Bash terminal inside RStudio is using different home directory than Git Bash terminal started independently, and hence is looking for .gitconfig
and SSH keys in incorrect locations.
To be exact, inside RStudio version 2022.12.0 Git Bash terminal ~
points to C:\Users\<my_user>\Documents
, while when I start Git bash separately, and in previous RStudio release (2022.07.02) as well, it points to C:\Users\<my_user>
.
How could I change it? I'd like all Git Bash terminals to behave the same no matter where I start them. I'd prefer NOT to set HOME
environmental variable globally, because then it affects R session as well, and I'd like to keep the current behaviour there.