Answer the question
In order to leave comments, you need to log in
How to change the location of .gitconfig?
Good day.
I installed git, but when I run it, it shows an address at the top that I did not specify anywhere, and it seems strange to me, since git decided to use the Cadence / SPB_Data folder for storage, in the Cadence folder I have OrCAD Allegro (I I use it sometimes).
Is it possible to move .gitconfig from this folder without damaging Cadence?
Answer the question
In order to leave comments, you need to log in
The address above is swaying not git but bash, but rather git bash
The very phrase "git decided to use a folder for storage" sounds wild. Git doesn't solve anything by itself.
In addition, you will have several .gitconfig files. One is global, in the user's root folder, the second is in the repository's root folder. Therefore, there is no need to reset the global config somewhere.
In general, this combination looks like your user's home folder is Cadence/SPB_Data, try cd command in a regular terminal ~
To make a new repository or start controlling the project folder, go to the folder where you want to add version control, for example cd / c /Projects/MyProject and do a git init
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question