Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/yuler/gh-upload
[GitHub CLI] extension for upload folders/files to static repo
https://github.com/yuler/gh-upload
cli gh-extension gh-upload static upload
Last synced: 14 days ago
JSON representation
[GitHub CLI] extension for upload folders/files to static repo
- Host: GitHub
- URL: https://github.com/yuler/gh-upload
- Owner: yuler
- Created: 2023-05-26T08:48:57.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2023-10-18T10:51:12.000Z (about 1 year ago)
- Last Synced: 2024-12-23T00:52:44.608Z (16 days ago)
- Topics: cli, gh-extension, gh-upload, static, upload
- Language: Shell
- Homepage:
- Size: 16.6 KB
- Stars: 2
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# gh-upload
[GitHub CLI] extension for upload folders/files to `static` repo
## How it works
- Create blob for every files
- Get latest sha from default branch
- Create tree w/ blobs and latest sha
- Post commit w/ tree and latest sha
- Update default branch ref## Usage
You need to create a repository named `static` first. You can use `gh repo create static --public` to create it.
```bash
gh extension install yuler/gh-upload
# Create alias dl => download
gh alias set up "upload"
gh up -h
```