How would it be possible to automatically move all changes in the project (repository) => I mean the situation when I change/add/delete a file or directory in the project not yet perform a commit => automatically on the mirrored directory that is on OneDrive, this would be some "workaround" for the problem.
-----Original Message----- From: git-users@googlegroups.com <git-users@googlegroups.com> On Behalf Of Konstantin Khomoutov Sent: Sunday, December 4, 2022 1:27 PM To: git-users@googlegroups.com Subject: Re: [git-users] Re: The git projects disappeared after the updated On Sun, Dec 04, 2022 at 08:03:12AM +0100, Uwe Brauer wrote: > > Exactly - that's how I've been operating for a long time and I've > > never had any problems - everything has always worked correctly and > > I have the added security of a copy on the network + history on > > OneDrive, as if something were to happen. Full security. > > It just occurred to me: > > Mercurial has the *share* extension, > > which allows to, well, share repositories over directories. (Not sure > how safe that would be in our scenario) > > I think git has worktree, although I am not sure whether it is 100 % > equivalent. Well, Git calls "the work tree" a directory to which the current commit (at which HEAD points) is checked out. Hence a worktree is the directory in which the ".git" subdirectory sits, and where you tinker with the files to record a new commit. Git also has a command, `git worktree`, which allows attaching another work tree to the existing local Git repository - that ".git" subdirectory or a normal Git repository, or to a bare repository, which has no work tree. A way to share stuff with Git using "sneakernet" is `git bundle`: it creates a single file which can contain normal Git "objects" such as commits, tags etc. Normal Git commands can fetch/pull from a bundle file and push to it. Sure, there also exists `git archive`, but it's for archiving a set of files contained in a particular single commit, so it's a tool mostly to create downloadable releases of a pieces of software. -- You received this message because you are subscribed to a topic in the Google Groups "Git for human beings" group. To unsubscribe from this topic, visit https://groups.google.com/d/topic/git-users/lD2ekpYaKF4/unsubscribe. To unsubscribe from this group and all its topics, send an email to git-users+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/git-users/20221204122658.ywt4qiy6yx7gvmhy%40carbon. -- You received this message because you are subscribed to the Google Groups "Git for human beings" group. To unsubscribe from this group and stop receiving emails from it, send an email to git-users+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/git-users/009701d907e4%24cace0ea0%24606a2be0%24%40gmail.com.