Gitfs: Version Controlled File System | Hacker News
FUSE로 Git을 폴더로 쓰는 것.
root@gitfs:~# sudo apt-get update
Hit:1 <http://us.archive.ubuntu.com/ubuntu> hirsute InRelease
Ign:2 <http://ppa.launchpad.net/presslabs/gitfs/ubuntu> hirsute InRelease
Hit:3 <http://us.archive.ubuntu.com/ubuntu> hirsute-updates InRelease
Hit:4 <http://us.archive.ubuntu.com/ubuntu> hirsute-backports InRelease
Hit:5 <http://us.archive.ubuntu.com/ubuntu> hirsute-security InRelease
Err:6 <http://ppa.launchpad.net/presslabs/gitfs/ubuntu> hirsute Release
404 Not Found [IP: 2001:67c:1560:8008::19 80]
Reading package lists... Done
E: The repository '<http://ppa.launchpad.net/presslabs/gitfs/ubuntu> hirsute Release' does not have a Release file.
N: Updating from such a repository can't be done securely, and is therefore disabled by default.
N: See apt-secure(8) manpage for repository creation and user configuration details.
sudo apt-get install virtualenv
sudo apt install build-essential libssl-dev zlib1g-dev libncurses5-dev libncursesw5-dev libreadline-dev libsqlite3-dev libgdbm-dev libdb5.3-dev libbz2-dev libexpat1-dev liblzma-dev tk-dev libffi-dev
# download and extract python
wget <https://www.python.org/ftp/python/3.7.0/Python-3.7.11.tar.xz>
tar xf Python-3.7.11.tar.xz
cd Python-3.7.11
# build python
./configure
# 'make -j <x>' enables parallel execution of <x> make recipes simultaneously
sudo make
# altinstall does not alter original system python install
sudo make altinstall
cd gitfs/
python3.7 -m venv venv
source venv/bin/activate
make
gitfs -o commiter_name=esukmean,[email protected],username=ESukmean,password=pw1234 <https://[email protected]/ESukmean/gitfs-test.git> fs
mkdir fs
mkdir /var/lib/gitfs
root@gitfs:~/fs# tree
.
├── current
│ ├── dist
│ ├── test.pyc
│ └── test_upload
└── history
└── 2021-08-23
├── 12-51-35-3c269b89bd
├── 12-55-08-2ec0a6835a
│ └── test_upload
└── 12-56-01-a8c3dd80f1
├── dist
└── test_upload
8 directories, 4 files