Back

Explore Courses Blog Tutorials Interview Questions
0 votes
1 view
in DevOps and Agile by (29.3k points)

I ran a global configuration command in git to exclude certain files using a .gitignore_global file:

git config --global core.excludesfile ~/.gitignore_global

Is there a way to undo the creation of this setting globally?

1 Answer

0 votes
by (50.2k points)

You can remove an entry in a global configuration using:

git config --global --edit

There you can edit your changes in the file.

If you want to remove the file completely you could do this:

git config --global --unset core.excludesfile

This command will remove the core.excludesfile.

Reference: https://git-scm.com/docs/git-config#Documentation/git-config.txt---global

For more reference on git commands, you can check out git tutorial and git commands.

Welcome to Intellipaat Community. Get your technical queries answered by top developers!

28.4k questions

29.7k answers

500 comments

94.2k users

Browse Categories

...