Be careful when Git suppresses bin Folders
Posted
by Marko Apfel
on Geeks with Blogs
See other posts from Geeks with Blogs
or by Marko Apfel
Published on Fri, 05 Oct 2012 06:12:00 GMT
Indexed on
2012/10/09
15:40 UTC
Read the original article
Hit count: 290
Initial situation
Often for Visual Studio projects the typical content of a .gitignore file contains this line
- bin or
- [B|b]in
It is used to avoid that Git tries to track compile outputs as repository relevant data.
Problem
But keep in mind: this will also suppress bin folders of additional stuff like frameworks and toolsets.
For instance
- Microsoft.SDKs
contains a folder named Bin with a lot of programs - Simian
contains a folder named bin with the program themselves
If you store such artifacts also in the repository - according to the principle of a “self containing project” – you could lost the content in the bin folder!
Solution
Till yet I don’t have a good idea.
So I verify for each new added toolset or framework whether it has or has not such a bin folder. If it has, then I must add this bin folder manually to the repository so that Git track it.
© Geeks with Blogs or respective owner