V
V
Victor Incognito2020-10-10 16:17:28
git
Victor Incognito, 2020-10-10 16:17:28

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?

What does it look like
a9omtQMf.png

Answer the question

In order to leave comments, you need to log in

1 answer(s)
V
Vladimir, 2020-10-11
@Casufi

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 ~
5f830a897de2e395822056.png
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 question

Ask a Question

731 491 924 answers to any question