Page 1 of 1

How to clean a project to upload to my github?

Posted: January 9th, 2017, 6:55 pm
by adabo
Hi guys, I'm trying to figure out a way to clean out any unessential files so that I can just push my project to git hub so that anybody who downloads it can just let their VS fill in the rest.

Is it just a matter of looking over Chili's framework on github and removing anything that's not it there or are there files on that repo that I can leave out?

Thanks!

Re: How to clean a project to upload to my github?

Posted: January 9th, 2017, 7:55 pm
by MrGodin
I suppose you could do as instructed here
http://forum.planetchili.net/viewtopic.php?f=3&t=2

Re: How to clean a project to upload to my github?

Posted: January 9th, 2017, 9:09 pm
by albinopapa
Actually, it might be easier than that, when you asked about it, I thought you meant to put in Zip file. Use the .ignore file to have Git ignore files, file extensions or even folders ignore them. Git won't track or sync ignored items.

Re: How to clean a project to upload to my github?

Posted: January 9th, 2017, 11:29 pm
by adabo
All well and good, but which files do I ignore?

Re: How to clean a project to upload to my github?

Posted: January 9th, 2017, 11:31 pm
by FinalL
for any git repo I recommend using .gitignore file. For example in Git Extensions program you even have an option to generate a default .gitignore file that will make it ignore vcxproj files and the Debug and Release folders, etc. so you only sync the source files. (That program is my love and makes everything easier when you actually don't have to use bash shell for manipulating git through SSH ;) )
These are the default ignores of Git Extensions you can put into .gitignore

Code: Select all


#ignore thumbnails created by windows
Thumbs.db
#Ignore files build by Visual Studio
*.obj
*.exe
*.pdb
*.user
*.aps
*.pch
*.vspscc
*_i.c
*_p.c
*.ncb
*.suo
*.tlb
*.tlh
*.bak
*.cache
*.ilk
*.log
[Bb]in
[Dd]ebug*/
*.lib
*.sbr
obj/
[Rr]elease*/
_ReSharper*/
[Tt]est[Rr]esult*

Re: How to clean a project to upload to my github?

Posted: January 10th, 2017, 12:30 am
by chili
Visual Studio will auto setup a gitignore and ignore most stuff you don't want up there. If you create your local repo from within VS you should be good to go.

Re: How to clean a project to upload to my github?

Posted: January 10th, 2017, 2:06 am
by albinopapa
Sometimes, it gets stupid and adds the .db file and .sdf file.

@FinalL, .gitignore...yeah that's what I meant.