sgitch

command module
v1.0.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 18, 2018 License: GPL-3.0 Imports: 13 Imported by: 0

README

Sgitch

Synopsis

Quickly switch between git profiles. You can have separate profiles for: work, school, private, etc. Currently supports: user.name, user.email, commit.gpgSign, and user.signingkey. The name is a concatenation between "switch" and "GIT", as "sGITch".

Installation

Requirement versions are estimates, it's what I use and know works.

From static binaries

Check the tags page. Under every release there should be binaries for most platforms.

Using Go Get

Requirements:

  • Go (1.10.3+)

Command:

$ go get gitlab.com/Timmy1e/sgitch
Using git

Requirements:

  • Git (2.18.0+)
  • Go (1.10.3+)

First, clone this repo:

$ git clone [email protected]:Timmy1e/sgitch.git

Second, tell go to build and get the dependencies.

$ go build -i .

Then move the build sgitch executable to where ever you want.

Dependencies

Usage

Please take note of the difference between 'name' and 'profile (name)'. The 'name' is the name of the user, and 'profile (name)' is the nickname of the profile.

Configuration
NAME:
   Sgitch config - manipulate the configuration

USAGE:
   Sgitch config command [command options] [arguments...]

COMMANDS:
     init, i      initialize a new configuration
     profiles, p  manage profiles

OPTIONS:
   --help, -h  show help
Init

This initializes a config file for you.

$ sgitch config init
NAME:
   Sgitch config init - initialize a new configuration

USAGE:
   Sgitch config init [command options] [arguments...]

OPTIONS:
   --force  override the file if it already exists
Profiles

Here you can manage your profiles.

COMMANDS:
     list, l        list profiles
     add, a         add a profile
     edit, e        edit a profile
     remove, r, rm  remove a profile

OPTIONS:
   --help, -h  show help
List

List profiles in config file.

$ sgitch config profiles lsit
Add

Add a profile to the config file.

$ sgitch config profiles add
Edit

Edit a profile in the config file.

$ sgitch config profiles edit [NAME]
Remove

Remove a profile from the config file.

$ sgitch config profiles remove [NAME]
Set

Set the current profile to use.

$ sgitch set [NAME]

License

GNU General Public License v3.0

Documentation

Overview

*

*

*

*

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL