Skip to content

A tool to help manage duplicated files across reposistories. Like git-submodule but for individual files.

Notifications You must be signed in to change notification settings

mullvad/git-carbon

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

41 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

git-carbon: duplicate files between repositories

git-carbon is a tool that help manage duplicated files across reposistories. One can think of it like git-submodule but for individual files.

Getting started

Add a file from an other repository

Add a file from a remote repository to your local worktree:

git carbon add ssh://[email protected]:myorg/sharedfiles.git .editorconfig

git-carbon will refuse to overwrite a file that already exist, unless you use --force:

git carbon add --force ssh://[email protected]:myorg/sharedfiles.git .editorconfig

git-carbon automatically stages its changes, so the only thing left is to commit:

git commit -m "Add shared .editorconfig"

Update shared file

git-carbon remembers where it got the files from, so it can apply changes easily. To get the new version of a shared file, you can use the update subcommand:

git carbon update .editorconfig

You can also update all files git-carbon knows about by passing --all to the subcommand:

git carbon update --all

About

A tool to help manage duplicated files across reposistories. Like git-submodule but for individual files.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •