.gitignore

It is important to keep temporary build files and local user settings out of Source Control. SVN has the SVN:ignore property which can be applied to directories to prevent a directory or a file pattern from being committed to SVN.

GIT places the same information in a file named .gitignore. All sub directories will have those settings applied.

You can also create global ignore settings for GIT. This is done with the following command:

git config –global core.excludesfile ~/.gitignore_global

For .Net development I find the following good common GIT ignore settings:

*.suo
*.user
_resharper.*
*/bin
*/obj

Advertisements
This entry was posted in GIT. Bookmark the permalink.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s