gitctx

command module
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Feb 28, 2019 License: MIT Imports: 1 Imported by: 0

README

GITCTX

When committing to Git, your email address and name are attached to the commits. If you are like me, you want to have different configurations based on the project you're working on (e.g., for your job and open-source work).

gitctx makes this simple.

  • gitctx create establishes a new context with name and email
  • gitctx use hooks up the configuration into a local Git repository

This functionality works on a per-project basis, this is how it works:

cd <myproject>
gitctx use
# Select the right context

# Validate everything is as you expect
git config --get user.name
git config --get user.email

This functionality is backed by adding an [include] path=<contextpath> to .git/config.

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis
operations
use

Jump to

Keyboard shortcuts

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