Skip to content

Latest commit

 

History

History
35 lines (29 loc) · 997 Bytes

README.md

File metadata and controls

35 lines (29 loc) · 997 Bytes

Git URL Shortener

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.

Installation

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:

  1. Clone this repository to your local machine.
git clone https://github.com/sailingteam4/git-short-url.git
  1. Ensure you have Python installed. This script was developed using Python 3.
  2. Install the required Python packages using pip:
pip install colorama gitpython

Usage

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