[Boards: 3 / a / aco / adv / an / asp / b / bant / biz / c / can / cgl / ck / cm / co / cock / d / diy / e / fa / fap / fit / fitlit / g / gd / gif / h / hc / his / hm / hr / i / ic / int / jp / k / lgbt / lit / m / mlp / mlpol / mo / mtv / mu / n / news / o / out / outsoc / p / po / pol / qa / qst / r / r9k / s / s4s / sci / soc / sp / spa / t / tg / toy / trash / trv / tv / u / v / vg / vint / vip / vp / vr / w / wg / wsg / wsr / x / y ] [Search | Free Show | Home]

GitHub and where to keep code

This is a blue board which means that it's for everybody (Safe For Work content only). If you see any adult content, please report it.

Thread replies: 16
Thread images: 1

File: github.png (23KB, 1200x630px) Image search: [Google]
github.png
23KB, 1200x630px
Hey /g/,

I am wondering about where to store my code. Generally speaking, I have a Dropbox folder on my computer which automatically syncs all the documents to all my devices. This is extremely useful. I have separate folders for separate languages and what junk I am working on.

However, now that I have discovered the wonders of Git and GitHub, I am wondering whether I should change the location of my stored code. I realized that one can store all kinds of files through Git, and now I can’t help but want to back all of my current documents through GitHub. Should I transfer everything out of Dropbox and create separate repos for all the code that I've written? Or is there some way to integrate it into both so that I have a solid backup? I noticed that GitHub Desktop recommends I don’t create repos in my Dropbox folder due to possible corruption.Tips are solidly appreciated.

Thanks!
>>
>>57148714
github is purpose built for storing code. you should definitely stop using dropbox
>>
>>57148740
What if I have other files besides code? I'm a in the arts so I also tend to use Pure Data, Arduino, Finale (not code), Photoshop and Illustrator, etc. I imagine that GitHub is probably only useful for code, I just want version control of all my files so I'm not naming something "final," "final 2.0," "final 3.0," etc. I prefer to not separate all my work.
>>
>>57148792
binary files don't really get the diff benefit of git so you can't see what was changed just from the diff window, but if you use meaningful commit messages you can still use git, why not
>>
>>57148792
git init
%move all 'production' files into the folder%
git commit -a -m 'moved production to master'
git checkout -b v2
%move all '2.0' files, rename them to be normal etc.%
git commit -a -m 'moved x files to v2'


You can keep a git folder on dropbox that has all your code, it syncs between devices. you can edit on all your devices, and store whatever you want in your very own git repository.

git =/= github.

Right now I have a webserver that is a central git repository. Everytime I push changes to the master branch it updates the sites, but I can use a stageing or other branch to make changes and push them as a form of "backup" without it affecting production. When I am ready to change production, I just merge the master branch with the other branch, or replace it entirely. And now production is updated to reflect that change.
>>
>>57148958
So you're saying just create repos in Dropbox anyway and commit them to GitHub from there?

I don't use the command prompt. I use GitHub Desktop. Only figured out how all this works today.
>>
>>57148792
look into https://git-lfs.github.com/
>>
>>57148958
>You can keep a git folder on dropbox
why would anyone do that?
>>
>>57149096
Thank you for this. Is GitHub itself not able to store large files? I have a project that's about 200Mb which includes audio files and recordings and all.
>>
>>57149185
>GitHub
i think github has a 100mb max size per file. maybe other hosts offer more
>>
>>57148792
Syncthing perhaps?

Personally I don't want to hand all my files to someone's storage as a service. I could encrypt 'em, but I still don't wanna.
>>
Pretty sure GitLab has no file size limit, but you can experience timeouts.

I personally use GitLab so I can have private repos for free, as well as all the other goodies GitLab offers for free.
>>
>>57150752
2GB file limt 10GB repo limit
>>
Github is not the only git hosting solution
You could self host a gitlab instance on an rpi
>>
>>57150791
Good to know, thanks! From what I gathered it was whatever file size you wanted and 10GB repos.

2GB limit is still pretty reasonable, I don't see many, if any, people uploading 2GB+ files.
>>
>>57150813
>gitlab instance on an rpi

That would run like shit.
Thread posts: 16
Thread images: 1


[Boards: 3 / a / aco / adv / an / asp / b / bant / biz / c / can / cgl / ck / cm / co / cock / d / diy / e / fa / fap / fit / fitlit / g / gd / gif / h / hc / his / hm / hr / i / ic / int / jp / k / lgbt / lit / m / mlp / mlpol / mo / mtv / mu / n / news / o / out / outsoc / p / po / pol / qa / qst / r / r9k / s / s4s / sci / soc / sp / spa / t / tg / toy / trash / trv / tv / u / v / vg / vint / vip / vp / vr / w / wg / wsg / wsr / x / y] [Search | Top | Home]

I'm aware that Imgur.com will stop allowing adult images since 15th of May. I'm taking actions to backup as much data as possible.
Read more on this topic here - https://archived.moe/talk/thread/1694/


If you need a post removed click on it's [Report] button and follow the instruction.
DMCA Content Takedown via dmca.com
All images are hosted on imgur.com.
If you like this website please support us by donating with Bitcoins at 16mKtbZiwW52BLkibtCr8jUg2KVUMTxVQ5
All trademarks and copyrights on this page are owned by their respective parties.
Images uploaded are the responsibility of the Poster. Comments are owned by the Poster.
This is a 4chan archive - all of the content originated from that site.
This means that RandomArchive shows their content, archived.
If you need information for a Poster - contact them.