Configure git to ignore some files locally

In this short article, we will show you how to configure git to ignore some files locally.

Sometimes, You may need to exclude files from Git only on your computer. So you can use the simple git command to ignore the files locally without using the .gitignore file.

Ignore files

Unignore files

Get the list of ignored files

Install git aliases

You can install git aliases to make it simpler. It will update your aliases node of your config file.

Now run the following commands to ignore/unignore or get ignored file list.

That’s it for today.
Thank you for reading. Happy Coding..!! 🙂

If you found value in this article,
you can support us by buying me a coffee! ☕

You may also like...

Leave a Reply

Your email address will not be published. Required fields are marked *