"First-Time Git Setup" docs about .gitconfig are incorrect as of Git For Windows v2.24
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 2/5
- Tempo stimato
- 1-3 ore
- Idoneità per principianti
- 68/100
- Tipo di issue
- Documentazione
- Chiarezza
- Specificata chiaramente
- Stato di attività
- Ferma
- Stack tecnologico
- git
- Ambito
- documentation
Direzione di ricerca
Apri la pagina Getting Started—First-Time Git Setup e individua il paragrafo che descrive i percorsi di .gitconfig su Windows; quindi trova il testo corrispondente nel codice sorgente di Pro Git. Aggiornalo in modo che rifletta la posizione attuale della configurazione di sistema di Git for Windows, oppure circoscrivi chiaramente il percorso relativo alla versione precedente, e verifica che la pagina generata non fornisca più indicazioni obsolete.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
There's no existing/similar bug report.
- I have searched the existing issues
This report is about a single actionable bug.
- I'm reporting a single actionable bug
This report is about the ProGit book, version 2, English language.
- This bug is not about a translation or old version
Bug covers book website/pdf
- I confirm the bug is about the book as found on the website/pdf
Problem is present in the Pro Git book on the website?
- This bug also affects the Pro Git book as published on the website.
Which version of the book is affected?
Source files
Describe the bug:
On this page, there is the following paragraph (emphasis mine):
On Windows systems, Git looks for the
.gitconfigfile in the$HOMEdirectory (C:\Users\$USERfor most people). It also still looks for[path]/etc/gitconfig, although it’s relative to the MSys root, which is wherever you decide to install Git on your Windows system when you run the installer. If you are using version 2.x or later of Git for Windows, there is also a system-level config file atC:\Documents and Settings\All Users\Application Data\Git\configon Windows XP, and inC:\ProgramData\Git\configon Windows Vista and newer. This config file can only be changed bygit config -f <file>as an admin.
As of git-for-windows/git#2358, this is incorrect. As described in the release notes:
Note! As a consequence of making
git config --systemwork as expected, the location of the system config is nowC:\Program Files\Git\etc\gitconfig(no longer split betweenC:\Program Files\Git\mingw64\etc\gitconfigandC:\ProgramData\Git\config), and likewise the location of the system gitattributes is nowC:\Program Files\Git\etc\gitattributes(no longerC:\Program Files\Git\mingw64\etc\gitattributes). Any manual modifications toC:\ProgramData\Git\configneed to be ported manually.
Steps to reproduce:
- Go to https://git-scm.com/book/en/v2/Getting-Started-First-Time-Git-Setup
- Read text :)
Expected behavior:
I think we could change this to say something like:
On Windows systems, Git looks for the global
.gitconfigfile in the%USERPROFILE%directory (C:\Users\%USERNAME%for most people). It also looks for the system config file at[path]/etc/gitconfig, where[path]is wherever Git was installed on your system. If you are using Git for Windows version between v2.0.0 and v2.23.0, there is also a secondary system-level config file at%PROGRAMDATA%\Git\config(C:\Documents and Settings\All Users\Application Data\Git\configon Windows XP, orC:\ProgramData\Git\configon Windows Vista and newer). This config file can only be changed bygit config -f <file>as an admin.
Or we could simply ignore versions of GFW that are 2+ years old:
On Windows systems, Git looks for the global
.gitconfigfile in the%USERPROFILE%directory (C:\Users\%USERNAME%for most people). It also looks for the system config file at[path]/etc/gitconfig, where[path]is wherever Git was installed on your system.
Screenshots:
No response
Additional context:
No response
Device
No response
Operating system
No response
Browser/application + version
No response
- Lingua principale
- CSS
- Stelle
- 6.6k
- Fork
- 2.1k
- Metriche di merge delle PR
- Nessuna PR unita negli ultimi 30g
Guida per i contributori
Apri la guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di progit/progit2
-
bug
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
-
bug
Difficoltà 2/5 1-3 ore Idoneità per principianti 68/100
-
enhancement
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 82/100
-
enhancement
Difficoltà 1/5 1-3 ore Idoneità per principianti 65/100
-
enhancement
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 62/100
Tutte le issue di progit/progit2
Issue simili
-
documentation help wanted
Difficoltà 2/5 1-3 ore Idoneità per principianti 90/100
-
user-reported
Difficoltà 2/5 1-3 ore Idoneità per principianti 85/100
Kong/developer.konghq.com#7316 ·
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 88/100
HarperFast/skills#96 ·
-
enhancement
Difficoltà 2/5 1-3 ore Idoneità per principianti 68/100
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 82/100
infinispan/infinispan#18150 ·