https://github.com/photogabble/go-git-archive
Basic command line tool for zipping changed files between commits
https://github.com/photogabble/go-git-archive
command-line-tool git
Last synced: about 2 months ago
JSON representation
Basic command line tool for zipping changed files between commits
- Host: GitHub
- URL: https://github.com/photogabble/go-git-archive
- Owner: photogabble
- License: mit
- Created: 2017-10-17T14:47:03.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2017-11-17T14:24:13.000Z (over 8 years ago)
- Last Synced: 2026-01-13T06:11:12.330Z (6 months ago)
- Topics: command-line-tool, git
- Language: Go
- Homepage:
- Size: 16.6 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Go Git Archive [](https://twitter.com/intent/tweet?text=Helpful%20command%20line%20tool%20for%20zipping%20up%20changes%20between%20two%20commits%20in%20git.&url=https://github.com/photogabble/go-git-archive&via=github&hashtags=golang,developers)
[](https://goreportcard.com/report/github.com/photogabble/go-git-archive)
A small command line tool for zipping all files changed between two git commits.
## Usage
By default `-last` will be the current `HEAD` within your repository and therefore only the `-first` value is required.
```
Usage of git-archive.exe:
-first string
The git commit that we are to begin at.
-last string
The git commit that we are to end at. (default "...")
-list
List files rather than write to zip.
-v Toggle verbose output.
```
## Reasoning
I have been slowly learning Go as a hobby for the past few months, usually in blocks of an hour a month and have been working on small projects that I can easily get finished. This is one such project and it solves a problem I have at work where we often need to upload just the files changed between commit versions as a zip to an FTP endpoint.
## License
Distributed under MIT License, please see [license](LICENSE) file in code for more details.