by This is one of the easiest best practices, which you can start using in less than 2 minutes.

Also, I will explain how you can use your global .gitignore file (without adding or pushing).

There is not any git ignore command which you can use directly to ignore the unwanted files in your repository; instead, you should use .gitignore file.

So it's a team effort to use best practices and to keep your code repo stable and make sure you use git ignore file.

Related Articles