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
相关阅读
联想提供的128gb ssd 和intel 120gb 那个好一些?在用PBO看youku的狄仁杰之通天帝国气死人了,这帮1366x768就没好屏How to get WDS to work between two Tomato routers?现在dell outlet有25%的coupon吗?问牛人一下什么指标决定路由信号最远能传多远?N16链接速度都是多少啊?Asus WL520GU刷哪个版本的番茄?请问win7下ssd分区用什么软件?Master Card OO $150 off $300 for Lenovo, 买什么?问一个非常小白的问题BUFFALO b/g/n Wireless Router $30 @egg买kindle不刷duokan基本等于白买了rt-n16 + NAS有TX抢到dell outlet好机器吗?7134MHz!Phenom II X4 975娘胎中创纪录筒子们,PBO和dockstar10米长的HDMI怎么选?pbo又降价了x61的电池坏了