Reputation: 4633
I am using SourceTree for Github.
Problem is that Netbeans or Visual Studio projects have many unnecessary files and folders that don't need uploaded. Only the .cpp
and .java
files need to. I know that I can simply put only those in the folder and push them, but I have to do that everytime, rather than copy the whole projects and work on them in the Repository. Not to mention that whole projects occupy a lot of space.
How can I upload only certain files without needing to copy them in the Repository?
Upvotes: 0
Views: 40
Reputation: 3468
Add the files you do not wish to upload to your .gitignore
file. If the files are already in the repository you will need to delete them manually after adding them to the ignore file.
http://git-scm.com/docs/gitignore
Upvotes: 2