git-remote-copy
v1.5.4
Published
A utility command to copy any folders or files of any public github/gitlab/bitbucket repo to selected path, without copying the whole repo
Maintainers
Readme
[!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
- [x] 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
- [x] Support for github
- [ ] Support for gitlab
- [ ] Support for bitbucket
- [x] Support for Linux/Unix/Macos
- [x] Support for Windows
Installation
You must have npm installed in order to install this script.
Basic installation
npm install -g git-remote-copyAnd use it like
git-remote-copy https://github.com/kujo205/kujo205/blob/main/README.md .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 --editModify 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
After this you can use this command as if it is default git command
Side quest
- Implement as many pattern as possible, you can find info about patterns an examples of their implementation in PATTERNS.md
