How to clean a project to upload to my github?

The Partridge Family were neither partridges nor a family. Discuss.
Post Reply
adabo
Posts: 154
Joined: October 27th, 2012, 3:28 am
Location: Houston, Texas

How to clean a project to upload to my github?

Post by adabo » January 9th, 2017, 6:55 pm

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!

MrGodin
Posts: 721
Joined: November 30th, 2013, 7:40 pm
Location: Merville, British Columbia Canada

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

Post by MrGodin » January 9th, 2017, 7:55 pm

I suppose you could do as instructed here
http://forum.planetchili.net/viewtopic.php?f=3&t=2
Curiosity killed the cat, satisfaction brought him back

albinopapa
Posts: 4373
Joined: February 28th, 2013, 3:23 am
Location: Oklahoma, United States

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

Post by albinopapa » January 9th, 2017, 9:09 pm

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.
If you think paging some data from disk into RAM is slow, try paging it into a simian cerebrum over a pair of optical nerves. - gameprogrammingpatterns.com

adabo
Posts: 154
Joined: October 27th, 2012, 3:28 am
Location: Houston, Texas

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

Post by adabo » January 9th, 2017, 11:29 pm

All well and good, but which files do I ignore?

FinalL
Posts: 53
Joined: February 6th, 2014, 3:44 pm
Location: Slovakia

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

Post by FinalL » January 9th, 2017, 11:31 pm

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*
Many noodles, one sauce.
'Programming rules: #1 - Everything is just a fucking number.' Chili, 2012
Mainly Discord procrastinator

User avatar
chili
Site Admin
Posts: 3948
Joined: December 31st, 2011, 4:53 pm
Location: Japan
Contact:

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

Post by chili » January 10th, 2017, 12:30 am

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.
Chili

albinopapa
Posts: 4373
Joined: February 28th, 2013, 3:23 am
Location: Oklahoma, United States

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

Post by albinopapa » January 10th, 2017, 2:06 am

Sometimes, it gets stupid and adds the .db file and .sdf file.

@FinalL, .gitignore...yeah that's what I meant.
If you think paging some data from disk into RAM is slow, try paging it into a simian cerebrum over a pair of optical nerves. - gameprogrammingpatterns.com

Post Reply