Giter Site home page Giter Site logo

gitdentity's Introduction

gitdentity v1.0.2

You ever have multiple Git identities and you need to switch between them. This program stores git identities in a database and lets you switch between them with a short ID name so you don't have to repeat git config --global commands every time you want to commit with another git identity.

Installation

This program will be published to crates.io, so to install the program, run

cargo install gitdentity

Usage

CLI

This program comes with a CLI manager for managing your identities. You can run it by not giving the program any arguments. Here is what the CLI looks like. v1.0.1 lets you use letters instead of numbers for input. The numbers are still supported if you want to use them.

Gitdentity
Current Identities:
------------------
1 | example | Example Name | [email protected]
2 | example2 | Example Person | [email protected]
a) Add an Identity
d) Delete an Identity
e) Exit this program
> : 

You can add an identity with 1 and it will write the identity to the SQLite database. You can delete an identity with 2 and it will delete the identity out of the database. You can exit the program with 3.

Arguments

When you give the command an argument, it querys the database and writes the identity name and email to the .gitconfig file located in your Home directory.

gitdentity example

And it prints out this message

I have wrote the example identity to /home/example/.gitconfig

Requirements

rustqlite requires you to have SQLite installed on your computer by default. If you don't want to use your local copy and want to use a bundled copy, run this command when installing gitdentity.

cargo install gitdentity --features=bundled

gitdentity's People

Contributors

blyatmangopnik avatar

Stargazers

 avatar

Watchers

 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.