Skip to content

A simple tool to shorten url on a server uploaded on github pages

Notifications You must be signed in to change notification settings

sailingteam4/git-short-url

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 

Repository files navigation

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

About

A simple tool to shorten url on a server uploaded on github pages

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published