This Python script allows you to shorten URLs using a Git repository. It provides options to create a new shortened URL and to delete an existing one.
If you want to install it on your local machine using the installer script :
curl https://raw.githubusercontent.com/sailingteam4/git-short-url/main/installer.sh | zsh
Or if you want to install it manually, follow these steps:
- Clone this repository to your local machine.
git clone https://github.com/sailingteam4/git-short-url.git
- Ensure you have Python installed. This script was developed using Python 3.
- Install the required Python packages using pip:
pip install colorama gitpython
python git-url-shortener.py [url] [shortened_url]
Or if you want to delete a shortened URL:
python git-url-shortener.py -d [shortened_url]
You can also use the -l option to list all shortened URLs:
python git-url-shortener.py -l