https://github.com/syucream/gitsnap
Copy snapshot files managed by git
https://github.com/syucream/gitsnap
git
Last synced: about 1 month ago
JSON representation
Copy snapshot files managed by git
- Host: GitHub
- URL: https://github.com/syucream/gitsnap
- Owner: syucream
- License: mit
- Created: 2019-01-02T11:21:00.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2019-01-08T15:42:46.000Z (over 7 years ago)
- Last Synced: 2025-10-08T02:47:18.309Z (9 months ago)
- Topics: git
- Language: Go
- Size: 6.84 KB
- Stars: 3
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# gitsnap
Copy snapshot files managed by git
## Installation
```
$ go get -u github.com/syucream/gitsnap
```
## Usage
```
$ gitsnap -h
Usage of gitsnap:
-path string
/path/to/.gitdir (default ".")
-path-prefix string
/path/to/prefix/destination (default "/tmp/gitsnap/dev/")
-revision string
git revision
```
## Example
```
$ gitsnap -path . -path-prefix /tmp/gitsnap/dev/ -revision master
Done : /tmp/gitsnap/dev/.gitignore
Done : /tmp/gitsnap/dev/Gopkg.lock
Done : /tmp/gitsnap/dev/Gopkg.toml
Done : /tmp/gitsnap/dev/LICENSE
Done : /tmp/gitsnap/dev/README.md
Done : /tmp/gitsnap/dev/main.go
```