Skip to content
This repository has been archived by the owner on Feb 2, 2021. It is now read-only.
/ gim Public archive

Simple installation manager for your Git projects.

License

Notifications You must be signed in to change notification settings

dominiksalvet/gim

Repository files navigation

The development of gim has been discontinued in favor of GitPack.


gim

gim logo

gim ready reuse compliant standard-readme compliant Hits

Simple installation manager for your Git projects.

Wouldn't it be great to install and update your favorite Git projects like this?

gim install <url>

And when they are no longer needed, uninstall them that way?

gim uninstall <url>

If you are in, then gim comes in pretty handy. All you need is a URL of a Git project and gim will do the rest. With respect to gim's flexibility, there are a lot of compatible projects around even without being adapted to gim at all.


Are you a developer of a Git project? Do you like the idea stated above? Then keep reading in the Developer section.

Table of Contents

Install

Global (system) installation:

mkdir -p /tmp/gim/ && # create a temporary directory for gim repository
cd /tmp/gim/ && # go to the created directory
git clone https://github.com/dominiksalvet/gim.git . && # clone gim repository
git checkout "$(git describe --tags --abbrev=0)" && # use latest gim version
sudo make install && # install gim, requires root permissions
echo 'SUCCESS' # print a message when everything succeeded

Local (user) installation:

mkdir -p /tmp/gim/ && # create a temporary directory for gim repository
cd /tmp/gim/ && # go to the created directory
git clone https://github.com/dominiksalvet/gim.git . && # clone gim repository
git checkout "$(git describe --tags --abbrev=0)" && # use latest gim version
make install && # install gim, does not require root permissions
echo 'SUCCESS' # print a message when everything succeeded

From now on, you can use gim to update itself or even uninstall itself. If you decide to uninstall gim, it would not uninstall any project installed by gim. However, you would probably need to install gim back to manage those projects.

Usage

Install or update a Git project:

gim install <url>

Uninstall a Git project:

gim uninstall <url>

Show status of a Git project:

gim status <url>

Example

gim example

As demonstrated above, gim works with either global or local installations based on whether it is run with root permissions.

Developer

You may use gim in your Git projects. Why?

  • No gim-specific files required
  • Easy-to-use for developers and users
  • Global and local installations
  • Delta updates
  • POSIX-friendly environment

How? Meet the rules stated in the RULES.md file and your project will become gim ready. Then users can use gim to manage it.

Not sure? Try gim status <url> with the URL of your project - maybe it is already compatible.

Badge

Gim ready projects work best with the following badge:

gim ready

Markdown:

[![gim ready](https://img.shields.io/badge/gim-ready-571997.svg)](https://github.com/dominiksalvet/gim)

Thanks

Big thanks to Jan Polák for help with macOS support.

Contributing

Do you want to contribute? Do you have any questions? Then the CONTRIBUTING.md file is here for you.

License

Licensing policy of gim is compliant with REUSE Practices.

The preferred license is the MIT License as stated in the LICENSE.txt file.