F*Q
2 楼
I have been using git to manage my core files (almost everything, except
pictures, downloads, and big data files) since 2010. really happy that I
made that choice.
My repository (bare) has grown from from 3GB to 8GB (you will be surprised
how slow your real creations grow once you start organizing your files).
Once you checkout a copy, the total git folder is about 2x of the bare repo
size - to me, is about 16 GB plus un-tracked files (mostly those do not
worth version control).
There are a few noticeable benefits using a git to manage your files
1. apparent, you have everything - every file change, every history etc, you
can go back and forth anywhere, any time.
2. your data are naturally backed up - every computer with a working git
folder is a self-contained complete copy of your files; you will never be
afraid of losing your data again.
3. blazing fast! git is designed to work with large projects. It is almost
effortless to manage my 8GB repo (60k files). The only thing you will need
is to make sure your git folder is located on an SSD! On my laptop, a "git
status" takes less than a second.
4. apparently, you also get all the benefits of git - branching, merging,
tagging, diff-ing, ...
There were some learning curves, but after practicing, you will like the way
it is. My repos are stored on Linux, Mac and Windows (use TortoiseGit).
Once you set up the repo, and smooth the wrinkles (such as setting up the
newline/file permissions), it is smooth sail afterwards.
pictures, downloads, and big data files) since 2010. really happy that I
made that choice.
My repository (bare) has grown from from 3GB to 8GB (you will be surprised
how slow your real creations grow once you start organizing your files).
Once you checkout a copy, the total git folder is about 2x of the bare repo
size - to me, is about 16 GB plus un-tracked files (mostly those do not
worth version control).
There are a few noticeable benefits using a git to manage your files
1. apparent, you have everything - every file change, every history etc, you
can go back and forth anywhere, any time.
2. your data are naturally backed up - every computer with a working git
folder is a self-contained complete copy of your files; you will never be
afraid of losing your data again.
3. blazing fast! git is designed to work with large projects. It is almost
effortless to manage my 8GB repo (60k files). The only thing you will need
is to make sure your git folder is located on an SSD! On my laptop, a "git
status" takes less than a second.
4. apparently, you also get all the benefits of git - branching, merging,
tagging, diff-ing, ...
There were some learning curves, but after practicing, you will like the way
it is. My repos are stored on Linux, Mac and Windows (use TortoiseGit).
Once you set up the repo, and smooth the wrinkles (such as setting up the
newline/file permissions), it is smooth sail afterwards.
F*Q
4 楼
by the way, you don't need a gitlab/github to use git. those are just web
interfaces. you can convert any folder on your disk to a git repository!
here is how I did mine, first, find a server (a machine you use to exchange
data) that runs an ssh server, use
mkdir gitreponame
cd gitreponame
git --bare init
to create a bare repository, then from any other machine, you clone a copy
from this bare repo by
git clone ssh://youraccount:myserve.com:/path/to/gitreponame gitrepo
then you do your git stuff, after you are done, run "git commit" and "git
push". That will upload your changes to the bare repo. Then, another machine
can checkout the latest changes from the bare repo by "git pull". that's it
.
【在 z*********e 的大作中提到】
: 像gitlab这种,一个repo可以放10gb
: 有什么明显的优缺点吗
n*u
8 楼
大量小文件的话,git很好。
小量大文件的话,resilio sync这些比较好,torrent是把大文件分块来同步的,小改
动不需要更新整个文件。
傻瓜方法就是花点钱dropbox。
小量大文件的话,resilio sync这些比较好,torrent是把大文件分块来同步的,小改
动不需要更新整个文件。
傻瓜方法就是花点钱dropbox。
t*g
9 楼
dropbox可以免费弄成25G啊
F*Q
12 楼
git runs "git gc" whenever it feels necessary. the .git folder keeps pretty
much the same size as your working folder.
there are many ways to permanently purge deleted files, you can use git
filter-branch, git rebase, or bfg
http://stackoverflow.com/questions/307828/completely-remove-file-from-all-git-repository-commit-history
https://rtyley.github.io/bfg-repo-cleaner/
【在 j********2 的大作中提到】
: 不咋样,git删掉的文件还在历史commit里面,时间长了仓库目录会非常大。看着不断
: 增长的目录,慢慢会有一种无力感
E*r
13 楼
用群辉那个 cloud station drive
同步到自己 nas 的一个 shared folder
让那个 shared folder 自动做 btrfs snapshots 就好了
自己设置 retention policy
同步到自己 nas 的一个 shared folder
让那个 shared folder 自动做 btrfs snapshots 就好了
自己设置 retention policy
相关阅读
昨天抢了一个256GB的crucial M4 ssd$900 for Late 2009 iMac 27 (转载)太坏了大家,居然没人跟我提T420S屏幕烂的事情Dell has xps 8500 now不知道OLED的屏幕明年会主流么?is LED monitor is better than LCD monitor ?i5 3570K的deal全球著名品酒俱乐部,只需$69即可购买12瓶高档葡萄酒送高档开瓶器有没有要转让T410s或T420s的?为啥现在blu-ray光驱卖的还是那么贵?T61显卡坏了去哪里修?真正的神油登场了哪里有显示器的deal?请教,这个笔记本自带的20GB SSD该如何使用?电源管理里的关闭硬盘怎么设置合适?请问 CPUthinkpad 差点变砖新买的硬盘装不上,高手帮忙!地沟油刷砖了……qq突然死慢