Git Product home page Git Product logo

set-git-user's Introduction

A utility to manage the current github user or pair of users on a shared
workstation setup such as those commonly found at software consulting firms and
developer bootcamps.

Installation

  $ git clone https://github.com/hacktiv8/set-git-user.git
  $ cd set-git-user
  $ ./install # will install to /usr/local/bin

The `set-git-user` executable is also aliased (via symlinks) to `iam` and
`weare` for a nicer user interface.

The simplest use of this utility is to set the current git author (globally)
based on a github username:

  $ iam quackingduck
  $ git config --global user.name
  Myles Byrne
  $ git config --global user.email
  [email protected]
  $ get-git-user
  quackingduck

But you can also use it to set the current git author to a pair or group of users. The
author email will be pair+{username}.{username}@{domain} where the usernames
are ordered alphanumerically (and therefore deterministically) and the domain is
set by the ORG_DOMAIN environment variable (which you probably want to set
in workstation's shell config).

  $ ORG_DOMAIN=hacktiv8.com weare quackingduck mweitzel alycit
  Alyssa Diaz & Matthew Weitzel & Myles Byrne
  $ git config --global user.email
  [email protected]
  $ get-git-user
  alycit
  mweitzel
  articfox

If your organization uses Google apps for email then set up the address
[email protected] to bounce incoming emails - Google automatically routes
{user}+{anything}@your.org to {user}@your.org

set-git-user's People

Contributors

mattbaker avatar rizafahmi avatar mweitzel avatar jeffreywescott avatar johana-star avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.