Coder Social home page Coder Social logo

gitez's Introduction

gitez

Crates.io

Gitez(ez means easy) is a CLI that simplifies managing your Git repositories.

Installation

Cargo

cargo install gitez
Macos and Linux

Coming soon...

Windows

Coming soon...

Features

Clone Repository

gitez provides a simple way to manage your git repositories.

$BASE
|- github.com
|  `- group-name
|     `- project-name
`- gitlab.com
   `- group-name
      `- project-name

First, you need to set the base directory where you want to store your repositories.

gitez set-base-dir <your-base-dir> # gitez set-base-dir ~/dev

Second, clone a git repository.

gitez clone <repository-url> # gitez clone [email protected]:luhc228/gitez.git

Then, you will get the following directory structure.

$BASE
`- github.com
   `- luhc228
      `- gitez

Manage Git User Config

Do you ever have one more git user configs( for example one is for open source(GitHub) and another is for Work(GitLab))? And you use different username and email for your commits at work or for your open source repositories by mistake?

gitez helps you manage and switch your git user configs easier.

First, you need to add your git user configs.

gitez user-config add

# see the list of your git user configs you added
gitez user-config list

Second, you can set a directory that uses one of yor git user configs.(powered by gitdir config)

gitez user-config add-include <user-config-name> # gitez user-config add-include
$BASE
`- github.com  # use github user config(name<[email protected]>)
`- gitlab.com  # use gitlab user config(name<[email protected]>)

Also, you can apply one of your git user configs to the current directory.

gitez user-config apply <user-config-name> # gitez user-config apply

Generate SSH Key

You can generate an SSH key for your git repositories by the following command:

gitez ssh-keygen

It will also add the SSH private key to the ~/.ssh/config so that you can manage different SSH private keys for different git repositories.

gitez's People

Contributors

luhc228 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.