https://github.com/umaumax/git-wget
https://github.com/umaumax/git-wget
git wget
Last synced: about 2 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/umaumax/git-wget
- Owner: umaumax
- Created: 2019-02-08T08:22:58.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2020-12-10T17:00:45.000Z (over 5 years ago)
- Last Synced: 2025-10-04T02:26:09.645Z (9 months ago)
- Topics: git, wget
- Language: Shell
- Size: 14.6 KB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# git-wget
download some file or dir from GitHub url
## how to use
``` bash
git-wget https://github.com/umaumax/oressh/blob/master/oressh -O ~/local/bin/
```
## NOTE
* `GIT_WGET_TMP_DIR=~/.config/git-wget/`: use specific directory (not tmp) for cache
* `GIT_WGET_DEBUG`: for debug
## how to install
``` bash
install_path="$HOME/local/bin/git-wget"
wget https://raw.githubusercontent.com/umaumax/git-wget/master/git-wget -O "$install_path"
chmod u+x "$install_path"
```
for zsh completion
``` bash
wget https://raw.githubusercontent.com/umaumax/git-wget/master/_git_wget -O /usr/local/share/zsh/site-functions
```
## TODO
* check git clone with single branch mode
## FYI
* [sdushantha/gitdir: 📁 Download a single directory/folder from a GitHub repo]( https://github.com/sdushantha/gitdir )
* [Git で shallow clone するときに全ブランチの最新履歴を取得する]( https://zenn.dev/snowcait/articles/d44d6b2bed2e4b29ada4 )