FlexJobsSponsor

Try FlexJobs for a better remote and flexible job search experience!

Free and Premium plans are available.

Try FlexJobs for Free Today!

Open the gitignore File for your Git Repository

Locate your gitignore file and open the file, usually the gitignore file is a generic text file named .gitignore.txt at the root of the folder that you cloned your git repository into.

If the gitignore file doesn't exist, simply create a text file named .gitignore.txt in the root folder.

Add gitignore Pattern to ignore /bin and /obj folders

If your gitignore file is empty simply paste these lines in to create a new gitignore pattern, otherwise paste these lines at the end of your gitignore file after all current existing gitignore patterns:

# Ignore any files in /bin and /obj Folders
bin/*
obj/*

Success! 🎉

Now any files in the /bin or /obj folders will be ignored throughout your git repository and they will no longer show up when you view changes to your repository via git.

FlexJobsSponsor

Try FlexJobs for a better remote and flexible job search experience!

Free and Premium plans are available.

Try FlexJobs for Free Today!
FeedbackI'd love to hear your feedback!
Did this blog post help fix your issue? Still having trouble?
Tweet At Me
Brendan SlukeSoftware Engineer

Hi, I'm Brendan Sluke and I love writing code and blogging about software engineering.

Follow Me On Twitter Read My Blog
Recommended Blog PostsBlog Posts I Think You Will Find Interesting
Go Back To Top of Page