Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

repozip

repozip is a small command-line tool that creates a ZIP archive of the current Git repository using git archive.

Requirements

  • Rust and Cargo
  • Git installed and available on PATH
  • A Git repository with at least one commit (HEAD)

Usage

Create project.zip from the current repository:

cargo run --

Provide a custom archive name:

cargo run -- --output-path backup

The optional zip subcommand is also available:

cargo run -- zip

Run the command from the repository you want to archive. The archive is created from the committed HEAD tree.

Development

Format, lint, test, and build the project with:

cargo fmt --all
cargo clippy --all-targets --all-features --locked -- -D warnings
cargo test --all-features --locked
cargo build --release --locked

GitHub Actions runs these checks for pushes and pull requests. Tagged releases are built as platform-specific artifacts.

Release

After configuring cargo-dist, create a version tag and push it:

git tag v0.1.0
git push origin v0.1.0

The release workflow uses the tag to build and publish the release artifacts on GitHub.

About

Package Git repositories into clean archives

Resources

Code of conduct

Contributing

Security policy

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages