Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/w-mai/git_rnd_name
Generate a random git branch name based on remote name you given.
https://github.com/w-mai/git_rnd_name
Last synced: 26 days ago
JSON representation
Generate a random git branch name based on remote name you given.
- Host: GitHub
- URL: https://github.com/w-mai/git_rnd_name
- Owner: W-Mai
- License: mit
- Created: 2023-06-05T16:00:17.000Z (over 1 year ago)
- Default Branch: master
- Last Pushed: 2024-06-17T02:20:30.000Z (6 months ago)
- Last Synced: 2024-10-31T11:35:08.865Z (about 2 months ago)
- Language: Rust
- Size: 57.6 KB
- Stars: 4
- Watchers: 1
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# 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.
- Support show all branch created by this tool (fit the creation rules by this tool).You'll get a random name like this:
```bash
w-mai@MacBook-Pro ~/P/X/E/lvgl (đ)> git branch | column
âšī¸ đ
đđģ đŖ
* đ đŠ
đ đĢ
đ đ
đ đ¤
đ đ¤Š
đ đĨŗ
đ đĨē
đ đĢĸ
```or
```bash
w-mai@MacBook-Pro ~/P/X/E/lvgl (đ)> grn -a | column
âšī¸ đ
đđģ đŖ
đ đŠ
đ đĢ
đ đ
đ đ¤
đ đ¤Š
đ đĨŗ
đ đĨē
đ đĢĸ
```## Installation
```bash
cargo install git_rnd_name
```## Usage
```bash
grn --help
``````bash
Generate a random git branch name based on remote name you given.Usage: grn [OPTIONS] [REMOTE]
Arguments:
[REMOTE] remote namesOptions:
-c, --repo local repo path
-b, --branch create new branch
-a, --all List all branches create by this tool and exit
-v, --verbose... verbose mode
-h, --help Print help
-V, --version Print version
```## Example
Chane to your git repository directory.
```bash
grn
grn origin
```> You will get a random name like `đ`
```bash
grn origin -b
```> You will get a random name like `đ` and a new branch will be created.
```bash
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
1. Star and fork this repository
2. Clone your forked repository like `git clone https://github.com/yourname/git_rnd_name.git`
3. `cd git_rnd_name````bash
cargo build --release
```## License
MIT