Skip to content

kujo205/git-copy

Repository files navigation

Important

This is highly experimantal, bugs are expected

gitcopy

🛠️ A utility command to copy any folders or files of any public github/gitlab/bitbucket repo to selected path, without copying the whole repo

Road map

Features

  • Add a command to copy files or folder from remote gh repo to local repo
  • Add a command to see history of copying files, by integrating with sqlite
  • Support for github
  • Support for gitlab
  • Support for bitbucket
  • Support for Linux/Unix/Macos
  • Support for Windows

Installation

You must have npm installed in order to install this script.

Basic installation

npm install -g git-remote-copy

And use it like

git-remote-copy https://github.com/kujo205/kujo205/blob/main/README.md .
image

or you can also add it as git alias, which looks cooler.

Adding command as git alias

Then enter your global git config file by running

 git config --global --edit

Modify this file in the editor of your choice (I use vim, please check some guide if you struuggle with this). And add the line

  copy = "!git-remote-copy"

to alias area image

After this you can use this command as if it is default git command image

Side quest

  • Implement as many pattern as possible, you can find info about patterns an examples of their implementation in PATTERNS.md

About

🛠️ A utility command to copy any GitHub folders/files from URL straight to your file system ⬇️

Topics

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Contributors