Reputation: 9
I would like to know how when I make a git clone I could get rid off specific files, let me explain:
For example I do a few commits, in each one I add files ( .m files, .doc file and so on).
Then I must give this project to a client but I've got files in this .git project that doesn't concern him (let's say .m files).
How can I clone to him the Project without any trace of this type of file?
Submodules and subtrees are not the Solutions because the .m files would be everywhere in the Project.
Upvotes: 1
Views: 191
Reputation: 7484
Put
*.m
in your .gitignore file, So that in future when you commit your code, it will be automatically excluded from the commit
Upvotes: 4