https://github.com/iikira/lfsutil
A simple tool for accessing git lfs server.
https://github.com/iikira/lfsutil
git-lfs lfs
Last synced: 5 months ago
JSON representation
A simple tool for accessing git lfs server.
- Host: GitHub
- URL: https://github.com/iikira/lfsutil
- Owner: iikira
- License: apache-2.0
- Created: 2019-08-20T14:43:45.000Z (almost 7 years ago)
- Default Branch: master
- Last Pushed: 2022-03-04T12:10:44.000Z (over 4 years ago)
- Last Synced: 2024-06-20T03:45:47.784Z (about 2 years ago)
- Topics: git-lfs, lfs
- Language: Go
- Homepage:
- Size: 21.5 KB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# lfsutil
A simple tool for accessing git lfs server.
# Install
```
go get -u -v github.com/iikira/lfsutil
```
# Usage
Setup environment `LFS_REPO_URL` and `LFS_AUTH`
```
export LFS_REPO_URL="https://github.com/user/repo.git/info/lfs"
export LFS_AUTH="Basic dXNlcjpwYXNzd29yZA=="
```
## Get object infomation and download link
### By oid and size
```
lfsutil go oid:size
lfsutil go oid
```
#### example
```
lfsutil go e6fd9c1b536033f3346b32c391bd58587ea9f549cab7839cf8a1dbc62a739825:3862852
lfsutil go e6fd9c1b536033f3346b32c391bd58587ea9f549cab7839cf8a1dbc62a739825
```
### By local file
```
lfsutil go -by file /path/to/file
```
### By pointer file
Specification: https://github.com/git-lfs/git-lfs/blob/master/docs/spec.md
```
lfsutil go -by ptr /path/to/ptr/file
lfsutil go -by ptr http://example.com/ptr/file
```
## Upload local file
```
lfsutil uo /path/to/file
```