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

A CLI which allows you to use presets as a Git config for your current repository

License

Notifications You must be signed in to change notification settings

lus/gitman

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

gitman

A CLI which allows you to use presets as a Git config for your current repository


1.) Installation

  1. Download the latest executable from the releases tab
  2. Put the executable in a directory which is part of your PATH environment variable
  3. Restart your PC (Sometimes it is enough to restart your console window)

2.) Usage

GitMan currently supports two usage modes:

  1. Environment mode:
    1.) Set the 'GITMAN_PRESETS' environment variable to the directory where you will save your presets
    2.) Execute GitMan like this: 'gitman --name=PRESET_NAME'
    
    GitMan will automatically look for a preset file named 'PRESET_NAME.txt' inside the specified folder. 
    
    Tip: If you execute GitMan like this: 'gitman' (without any parameters),
    then it will search for a file named 'default.txt' inside your preset directory.
    
  2. Standalone mode:
    1.) Execute GitMan like this: 'gitman --path=path/to/preset.txt'
    
    GitMan will use the given file as preset file.
    

3.) File syntax

A simple preset file will look like this:

user.name=Your Name
[email protected]
test.value=test value here

I think this is self-explanatory.

About

A CLI which allows you to use presets as a Git config for your current repository

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages