winfsp / hubfs

File system for GitHub & GitLab
https://winfsp.dev
GNU Affero General Public License v3.0
1.62k stars 60 forks source link

Changes to mounted repository are not kept #4

Closed d-w-moore2 closed 2 years ago

d-w-moore2 commented 2 years ago

On:

I've followed the instructions in the README and managed to mount a Github private repository , authorizing my Ubuntu PC via the one-time code.

I mount and then create / write top level files in the repo :

$ hubfs ~/mnt/
<... use one-time code and launch browser to authorize device aka PC ... >
$ # in another terminal ... :
$ cd ~/mnt/d-w-moore2/practice/master ; touch a ; vim README.md # make changes and save
$ cd ~ ; fusermount -u mnt

Then:

billziss-gh commented 2 years ago

This is by design.

HUBFS use case scenario is to support browsing of repositories and allow local builds to be performed without cloning. HUBFS is not intended as a replacement for git. All changes to the repository are local and are not pushed into the origin repository.

d-w-moore2 commented 2 years ago

I see. It's more secure that way too, I suppose. As far as workflows for tracking any edits, changes could still be copied to a locally cloned repository - on detection of .keep files, and with use of a tool like rsync possibly. Thanks for the clarification!