GitPick as an addition to Related projects! #379
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Hey I just create a new tool and would love y'all to look at it, if it works for you, I would be happy to add on new features and improvements. Contributions welcome.
GitPick - With gitpick, you can clone precisely what you need.
GitPick
With gitpick, you can clone precisely what you need.
Tired of cloning an entire repository when you only need a specific file or folder? Need to watch remote changes and sync them locally? GitPick is here to help!
Simply copy the Github URL and run with
npx gitpick <url>
, be that a public or a private repository.gitpick
follows default git clone behavior. Read usage for more details.Usage
If you wish to clone a private repository, generate a personal access token.
For fine-grained access, select Repository permissions to be
Contents: Read-Only
.Use
https://<token>@github.com
as URL prefix when cloning.Checkout https://github.com/nrjdalal for more awesome repositories.
Installation
You can install GitPick globally using npm:
After installing, you can run the command:
Or use
npx
to run the command without installing:Usage
Run
npx gitpick <url> [target] [options]
to clone a file or directory from a GitHub repository.Say your files are located at following GitHub URL with a directory:
You can sync them to a target directory in your project using:
If you need to watch for changes, just add
-w
or-w [time]
(e.g.,1s
,1m
,1h
which is time in a human-readable format, default is1m
):Additionally, you can use this tool to clone any file or directory from any repository. For example:
The above command will clone the
next.js-pro
template from that particular repository.I would love feedback from you all. Let's go!
License
This project is licensed under the MIT License. See the LICENSE file for details.
URLs
https://github.com/nrjdalal/gitpick