Skip to content
/ gitez Public

Gitez is a CLI that simplifies managing your Git repositories.

License

Notifications You must be signed in to change notification settings

luhc228/gitez

Repository files navigation

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.

About

Gitez is a CLI that simplifies managing your Git repositories.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages