Crates.io | gitcp |
lib.rs | gitcp |
version | 0.3.1 |
source | src |
created_at | 2022-07-31 07:24:37.672384 |
updated_at | 2022-07-31 23:30:31.392789 |
description | Copy files from Git repository to local. |
homepage | https://github.com/r7kamura/gitcp |
repository | https://github.com/r7kamura/gitcp |
max_upload_size | |
id | 636006 |
size | 47,509 |
Copy files from Git repository to local.
We are planning to add some installers support in the future.
e.g.
For now, manually install prebuilt binary from GitHub Releases page:
or install from source via:
cargo install gitcp
$ gitcp --help
gitcp 0.3.1
Copy files from Git repository to local.
USAGE:
gitcp <source> [destination]
FLAGS:
-h, --help Prints help information
-V, --version Prints version information
ARGS:
<source> GitHub repository name (e.g. r7kamura/gitcp)
<destination> Path to destination directory [default: .]
Copy all files from https://github.com/owner/repo to current directory.
gitcp owner/repo
gitcp owner/repo tmp/repo
gitcp owner/repo@v1
gitcp owner/repo/foo.txt
You can specify globwalk powered glob patterns.
gitcp owner/repo/{foo,bar}.*
If there is .gitcpignore
in the copied repository side, it will be used to ignore files.
# .gitcpignore
CHANGELOG.md
README.md
This tool can be used not only to simply copy files from any repository, but also as an installer to provide templates for custom GitHub actions.
This is an example to install github-label-sync-action into the repository:
gitcp r7kamura/github-label-sync-action-template
If you always prepare routine files every time you create a repository, I think you can make it easier with gitcp
by preparing that template.