• Stars
    star
    127
  • Rank 282,790 (Top 6 %)
  • Language
    Go
  • License
    GNU General Publi...
  • Created almost 4 years ago
  • Updated about 1 year ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

Got is like git, but with an 'o'

Got

Like Git, but with an 'o'

Got is version control, with a model similar to Git's. It provides end-to-end encryption and uses an improved data structure with good support for large files and directories.

Quick Links

Features/Roadmap

  • Content-Defined chunking of large files into blobs with a maximum size.
  • E2E encryption. Branch names, directory names, file names, and file sizes can all be hidden from remote repositories.
  • Efficiently add/remove large files and directories to/from existing filesystems.
  • Stage changes with add, rm, put, and discard commands.
  • Inspect branch state with cat and ls.
  • Print and change the active branch with active command.
  • Commit changes, with commit.
  • Create, delete, and list branches with branch commands.
  • Copy one branch state to another with sync.
  • Share repositories over INET256 using serve command.
  • Share repositories using QUIC with the serve-quic command.
  • Branch level access control using ACL defined in a .got/policy file.
  • Efficiently pack many small files into fewer blobs.
  • Checkout the head of a branch to the working directory.
  • Merge 2 branches.

Getting Started

Either download a prebuilt binary or build one from source.

Then initialize a repository in the current working directory. Make sure you cd to where you want the repository.

$ got init

Contributing

To run the tests:

$ just test

Installs to $GOPATH/bin with just. If that isn't on your path, just copy the executable from there to wherever you want.

$ just install

To build release binaries

TAG=v0.0.x just build

Where TAG is an environment variable which should be set to the release version, or the Git hash of the source used for the build. The release binaries will be under the out directory.

Got in Action

Got importing a 3GB file.

$ got add large_file.dat
[1.608s]
  [1.564s] large_file.dat data_in=(1.24GB Ξ”=799.35MB/s)
    [1.564s] worker-0 blobs_in=(182blobs Ξ”=117.26blobs/s), data_in=(157.09MB Ξ”=101.21MB/s)
    [1.564s] worker-1 blobs_in=(197blobs Ξ”=127.43blobs/s), data_in=(158.19MB Ξ”=102.33MB/s)
    [1.564s] worker-2 blobs_in=(181blobs Ξ”=116.50blobs/s), data_in=(154.83MB Ξ”=99.66MB/s)
    [1.564s] worker-3 blobs_in=(172blobs Ξ”=112.63blobs/s), data_in=(154.01MB Ξ”=100.85MB/s)
    [1.564s] worker-4 blobs_in=(179blobs Ξ”=116.82blobs/s), data_in=(157.34MB Ξ”=102.68MB/s)
    [1.564s] worker-5 blobs_in=(177blobs Ξ”=115.36blobs/s), data_in=(156.12MB Ξ”=101.75MB/s)
    [1.564s] worker-6 blobs_in=(199blobs Ξ”=130.09blobs/s), data_in=(155.20MB Ξ”=101.46MB/s)
    [1.564s] worker-7 blobs_in=(161blobs Ξ”=104.50blobs/s), data_in=(150.69MB Ξ”=97.81MB/s)

More

Read more about the configuration objects in doc/Config.md.

Support and development discussion happen in the INET256 discord.