Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add --global to listing the git settings #907

Open
radersma opened this issue Dec 1, 2022 · 1 comment
Open

add --global to listing the git settings #907

radersma opened this issue Dec 1, 2022 · 1 comment

Comments

@radersma
Copy link

radersma commented Dec 1, 2022

While teaching the git lesson (Setting Up Git) we noticed that the following command resulted in some confusion:

git config --list

For Windows users this command shows many more system settings than for Linux or Mac users, which made people wondering whether there was something wrong with their settings. Perhaps it is better to specify to only show the global settings:

git config --list --global
@bencomp
Copy link
Contributor

bencomp commented Apr 4, 2023

We noticed this too. Specifically, some users' settings had init.defaultbranch=master (system config) and init.defaultbranch=main (our --global config). I haven't looked to find out if the latter overrides the former, i.e. if it mattered in practice, but it did raise a little confusion.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants