George Irimiciuc
George Irimiciuc

Reputation: 4633

Version control and projects

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

Answers (1)

Dave S
Dave S

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.

https://answers.atlassian.com/questions/180636/gitignore-file-i-am-brand-new-to-git-and-sourcetree-please-help

http://git-scm.com/docs/gitignore

Upvotes: 2

Related Questions