Virtual File System for Git: Enable Git at Enterprise Scale
Перейти к файлу
Derrick Stolee a17c95a9e2 Delete custom upgrader
This leaves 'gvfs upgrade' non-functional

Signed-off-by: Derrick Stolee <dstolee@microsoft.com>
2021-06-30 16:25:41 -04:00
.azure-pipelines build: add (currently unused) AzDO YAML release build 2021-06-28 14:09:31 +01:00
.github/workflows build: add releases/shipped to PR build trigger 2021-06-29 14:40:58 +01:00
GVFS Delete custom upgrader 2021-06-30 16:25:41 -04:00
docs Add sub section for recovering from pre-delete. 2020-08-11 10:51:31 -07:00
scripts build: add back new build scripts (for Windows only) 2021-06-28 14:09:03 +01:00
.editorconfig Introduce EditorConfig to help define consistent coding style 2018-12-27 13:57:42 -05:00
.gitattributes diff: use csharp driver for better function headers in .cs files 2019-09-04 16:37:36 -04:00
.gitignore Add a vnode cache to the kext to improve the performance of finding a vnode's virtualization root. 2019-04-10 09:27:29 -07:00
.vsconfig Add .vsconfig file to declare required VS components 2019-05-10 15:22:43 +01:00
AuthoringTests.md Additional changes to functional test documentation 2019-05-13 15:28:43 -07:00
CONTRIBUTING.md Add contributing guidelines to VFSForGit repo 2019-03-07 10:43:45 -08:00
Directory.Build.props build: drop old targets/props and add new ones 2021-06-28 13:45:23 +01:00
Directory.Build.targets build: drop old targets/props and add new ones 2021-06-28 13:45:23 +01:00
Directory.Solution.props build: drop old targets/props and add new ones 2021-06-28 13:45:23 +01:00
GVFS.sln Delete custom upgrader 2021-06-30 16:25:41 -04:00
GvFlt_EULA.md Automount and other updates: 2017-06-28 10:50:23 -07:00
License.md Current snapshot of GVFS 2017-02-02 22:33:24 -08:00
Protocol.md Perf improvements and bug fixes: 2017-10-24 14:22:20 -07:00
Readme.md BuildGVFSForWindows.bat: use nuget on PATH when possible 2020-06-23 08:33:37 -04:00
ThirdPartyNotices.txt Mac: Adds dtruss script from macOS, plus license & 3rd party notice 2019-02-01 23:25:40 +01:00
Version.props build: drop old targets/props and add new ones 2021-06-28 13:45:23 +01:00
global.json build: drop old targets/props and add new ones 2021-06-28 13:45:23 +01:00
nuget.config build: drop old targets/props and add new ones 2021-06-28 13:45:23 +01:00

Readme.md

VFS for Git

Branch Unit Tests Functional Tests Large Repo Perf Large Repo Build
master Build status Build status Build status Build status
shipped Build status Build status Build status Build status

What is VFS for Git?

VFS stands for Virtual File System. VFS for Git virtualizes the file system beneath your Git repository so that Git and all tools see what appears to be a regular working directory, but VFS for Git only downloads objects as they are needed. VFS for Git also manages the files that Git will consider, to ensure that Git operations such as status, checkout, etc., can be as quick as possible because they will only consider the files that the user has accessed, not all files in the repository.

See our documentation for instructions to get started.

New name

This project was formerly known as GVFS (Git Virtual File System). It is undergoing a rename to VFS for Git. While the rename is in progress, the code, protocol, built executables, and releases may still refer to the old GVFS name. See https://github.com/Microsoft/VFSForGit/projects/4 for the latest status of the rename effort.

Installing VFS for Git

Building VFS for Git

If you'd like to build your own VFS for Git Windows installer:

  • Install Visual Studio 2017 Community Edition or higher (https://www.visualstudio.com/downloads/).
    • Include the following workloads:
      • .NET desktop development
      • Desktop development with C++
      • .NET Core cross-platform development
    • Include the following additional components:
      • .NET Core runtime
      • Windows 10 SDK (10.0.10240.0)
  • Install the .NET Core 2.1 SDK (https://www.microsoft.com/net/download/dotnet-core/2.1)
  • Install nuget.exe
  • Create a folder to clone into, e.g. C:\Repos\VFSForGit
  • Clone this repo into the src subfolder, e.g. C:\Repos\VFSForGit\src
  • Run \src\Scripts\BuildGVFSForWindows.bat
  • You can also build in Visual Studio by opening src\GVFS.sln (do not upgrade any projects) and building. However, the very first build will fail, and the second and subsequent builds will succeed. This is because the build requires a prebuild code generation step. For details, see the build script in the previous step.

You can also use Visual Studio 2019. There are a couple of options for getting all the dependencies.

  • You can install Visual Studio 2017 side by side with Visual Studio 2019, and make sure that you have all the dependencies from Visual Studio 2017 installed
  • Alternatively, if you only want to have Visual Studio 2019 installed, install the following extra dependencies:

Visual Studio 2019 will automatically prompt you to install these dependencies when you open the solution. The .vsconfig file that is present in the root of the repository specifies all required components except the Windows 10 SDK (10.0.10240.0) as this component is no longer shipped with VS2019 - you'll still need to install that separately.

The installer can now be found at C:\Repos\VFSForGit\BuildOutput\GVFS.Installer.Windows\bin\x64\[Debug|Release]\SetupGVFS.<version>.exe

Trying out VFS for Git

  • VFS for Git will work with any Git service that supports the GVFS protocol. For example, you can create a repo in Azure DevOps, and push some contents to it. There are two constraints:
    • Your repo must not enable any clean/smudge filters
    • Your repo must have a .gitattributes file in the root that includes the line * -text
  • gvfs clone <URL of repo you just created>
    • Please choose the Clone with HTTPS option in the Clone Repository dialog in Azure Repos, not Clone with SSH.
  • cd <root>\src
  • Run Git commands as you normally would
  • gvfs unmount when done

Licenses

The VFS for Git source code in this repo is available under the MIT license. See License.md.

VFS for Git relies on the PrjFlt filter driver, formerly known as the GvFlt filter driver, available as a prerelease NuGet package.