7 releases
0.1.6 | Jan 18, 2024 |
---|---|
0.1.5 | Jan 18, 2024 |
0.1.4 | Jun 9, 2023 |
#10 in #git-remote
34 downloads per month
12KB
190 lines
git_rnd_name
Description
This is a tool to generate random names for git repositories.
This is useful when you want to create a PR
but you don't know what name you should use.
Features
- Generate random names for git repositories.
- Create new branch with random names.
- Support verbose mode.
- Support custom local repository path.
You'll get a random name like this:
w-mai@MacBook-Pro ~/P/X/E/lvgl (đ)> git branch | column
âšī¸ đ
đđģ đŖ
* đ đŠ
đ đĢ
đ đ
đ đ¤
đ đ¤Š
đ đĨŗ
đ đĨē
đ đĢĸ
Installation
cargo install git_rnd_name
Usage
grn --help
Generate a random git branch name based on remote name you given.
Usage: grn [OPTIONS] [REMOTE]
Arguments:
[REMOTE] remote name
Options:
-c, --repo <REPO> local repo path
-b, --branch create new branch
-v, --verbose... verbose mode
-h, --help Print help
-V, --version Print version
Example
Chane to your git repository directory.
grn
grn origin
You will get a random name like
đ
grn origin -b
You will get a random name like
đ
and a new branch will be created.
grn origin -c /path/to/repo
You will get a random name like
đ¤ī¸
in/path/to/repo
. If you add-b
option, a new branch will be created.
How to build
- Star and fork this repository
- Clone your forked repository like
git clone https://github.com/yourname/git_rnd_name.git
cd git_rnd_name
cargo build --release
License
MIT
Dependencies
~17MB
~343K SLoC