https://github.com/markrickert/gitarchive
Archival script for pulling down a complete git repository, branches and all.
https://github.com/markrickert/gitarchive
Last synced: about 1 year ago
JSON representation
Archival script for pulling down a complete git repository, branches and all.
- Host: GitHub
- URL: https://github.com/markrickert/gitarchive
- Owner: markrickert
- License: mit
- Created: 2013-08-07T14:54:42.000Z (almost 13 years ago)
- Default Branch: master
- Last Pushed: 2013-08-07T15:08:59.000Z (almost 13 years ago)
- Last Synced: 2025-02-08T07:27:15.429Z (over 1 year ago)
- Language: Shell
- Homepage: http://skookum.com/blog/one-git-archive-script-to-rule-them-all/
- Size: 109 KB
- Stars: 2
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# GitArchive
Archival script for pulling down a complete git repository, branches and all.
Here is the stuff this script does:
1. Clones the repository
2. Fetches all remote branches
3. Compresses the folder
4. Deletes the cloned folder.
Your remote repository is left untouched by this script.
## Installation
Simple: Download the script and run it wil the `sh` command.
More advanced:
1. Download the script and rename it to `gitarchive`.
2. Make it executable by running `chmod +x gitarchive`.
3. Put it somewhere in your `PATH` so you can access the script from anywhere.
## Usage
Run `sh gitarchive.sh [your repository clone url]` or simply `gitarchive [your repository clone url]` if you made the script executable and put it in your path.
## Output
This script will output a gzipped tarball of all branches of the supplied URL.
## License
See the `LICENSE` file.