Background
Git is straight forward.
And, usually out of the way.
Exclude Files
As you develop applications, you may find out that you do not need to store away the binary files produced by your application.
Depending on your programming language, the file extensions will vary.
For example:-
- C, C++, C#
- Object File ( .obj )
- Dynamic Link Library ( .dll )
- Executable ( .exe )
Git
File
.gitignore
In git, the exclusion list is kept in the .gitignore file.
IDE
Microsoft Visual Studio
Extension – Integration Services
Syntax
git status -u
Sample
git status -u | find "/sales" | findstr "obj ispac"
Output
Output – Image
Output – Textual
sourceCode/sales/bin/Development/sales.ispac sourceCode/sales/obj/Development/BuildLog.xml sourceCode/sales/obj/Development/Financial.dtsx sourceCode/sales/obj/Development/sales.dtsx sourceCode/sales/obj/Development/sales.dtsx sourceCode/sales/obj/Development/salesSpecificDay.dtsx sourceCode/sales/obj/Development/salesReferrals.dtsx sourceCode/sales/obj/Development/SalesProject.conmgr sourceCode/sales/obj/Development/Project.params sourceCode/sales/obj/Development/sales.dtproj sourceCode/sales/obj/Development/sales.dtsx
Sample Files
.gitignore
For instance, for someone using the Integration Services Extension in Visual Studio, here are some of the folders and extensions to target.
Outline
Folder, File, Extension | Explanation |
---|---|
Bin/ or bin/ or [Bb]in/ | Binary Folder |
Obj/ or obj/ or [Oo]bj/ | Object Folder |
*.ispac | [MS-ISPAC]: Integration Services Project Deployment File |
text
#kmorcinek/.gitignore #https://gist.github.com/kmorcinek/2710267 # Exclude Bin Folder [Bb]in/ # Exclude Object Folder [Oo]bj/ #Exclude .ispac Extension Files *.ispac
Re-examine
Once your .gitignore file is in place, please re-issue “git status -u” to identify files.
Recommended Reading
- Krzysztof Morcinek ( kmorcinek )
- kmorcinek/.gitignore
Link
- kmorcinek/.gitignore