2022-09-03 21:58:02 +00:00
|
|
|
# git-ea
|
|
|
|
|
|
|
|
git-ea is the base command
|
|
|
|
|
|
|
|
```
|
|
|
|
git-ea
|
|
|
|
├─ backport
|
|
|
|
├─ branch
|
2022-09-04 02:08:43 +00:00
|
|
|
├─ cleanup
|
2022-09-03 21:58:02 +00:00
|
|
|
├─ frontport
|
2022-09-04 02:08:43 +00:00
|
|
|
├─ ide
|
|
|
|
├─ init
|
2022-12-27 03:01:50 +00:00
|
|
|
├─ post
|
2022-09-04 02:08:43 +00:00
|
|
|
└─ pr
|
2022-09-03 21:58:02 +00:00
|
|
|
```
|
|
|
|
|
|
|
|
|
|
|
|
```
|
|
|
|
[--help]
|
2022-09-04 02:34:43 +00:00
|
|
|
[--version,-v]
|
2022-09-03 21:58:02 +00:00
|
|
|
```
|
|
|
|
**Usage**:
|
|
|
|
|
|
|
|
```
|
|
|
|
git-ea <cmd>
|
|
|
|
```
|
|
|
|
|
|
|
|
**--help**: Show help
|
|
|
|
|
|
|
|
|
2022-09-04 02:34:43 +00:00
|
|
|
**--version,-v**: Print git-ea version
|
2022-09-03 21:58:02 +00:00
|
|
|
|
|
|
|
|
2022-09-04 02:08:43 +00:00
|
|
|
-----
|
|
|
|
|
|
|
|
## cleanup
|
|
|
|
|
|
|
|
cleanup removes named branches, or interactive if no arguments
|
|
|
|
|
|
|
|
|
|
|
|
```
|
|
|
|
[--help]
|
|
|
|
```
|
|
|
|
**Usage**:
|
|
|
|
|
|
|
|
```
|
|
|
|
cleanup [branches...]
|
|
|
|
```
|
|
|
|
|
|
|
|
**--help**: Show help
|
|
|
|
|
|
|
|
|
2022-09-03 21:58:02 +00:00
|
|
|
-----
|
|
|
|
|
|
|
|
## backport
|
|
|
|
|
|
|
|
backport cherry-picks a commit and applies it to a clean branch based on `release`
|
|
|
|
|
|
|
|
|
|
|
|
```
|
2022-09-04 02:34:43 +00:00
|
|
|
[--from,-f]=[value]
|
2022-09-03 21:58:02 +00:00
|
|
|
[--help]
|
2022-09-04 02:34:43 +00:00
|
|
|
[--list,-l]
|
|
|
|
[--to,-t]=[value]
|
2022-09-03 21:58:02 +00:00
|
|
|
```
|
|
|
|
**Usage**:
|
|
|
|
|
|
|
|
```
|
|
|
|
backport --from [release=main] --to [release=latest]
|
|
|
|
```
|
|
|
|
|
2022-09-04 02:34:43 +00:00
|
|
|
**--from,-f**="": Release to backport from (ex: `main`, default: main)
|
2022-09-03 21:58:02 +00:00
|
|
|
|
|
|
|
|
|
|
|
**--help**: Show help
|
|
|
|
|
|
|
|
|
2022-09-04 02:34:43 +00:00
|
|
|
**--list,-l**: Open repository to see needed backports
|
2022-09-03 21:58:02 +00:00
|
|
|
|
|
|
|
|
2022-12-27 03:01:50 +00:00
|
|
|
**--to,-t**="": Release to backport to (ex: `17`, default: `latest`)
|
2022-09-03 21:58:02 +00:00
|
|
|
|
|
|
|
|
|
|
|
-----
|
|
|
|
|
|
|
|
## branch
|
|
|
|
|
|
|
|
branch creates a new branch called `name` based on `base`
|
|
|
|
|
|
|
|
|
|
|
|
```
|
2022-09-04 02:34:43 +00:00
|
|
|
[--base,-b]=[value]
|
2022-09-03 21:58:02 +00:00
|
|
|
[--help]
|
2022-09-05 03:09:49 +00:00
|
|
|
[--ide,-i]
|
2022-09-04 02:34:43 +00:00
|
|
|
[--list,-l]
|
|
|
|
[--no-fetch,-nf]
|
2022-09-03 21:58:02 +00:00
|
|
|
```
|
|
|
|
**Usage**:
|
|
|
|
|
|
|
|
```
|
|
|
|
branch --base [ref=main] <name>
|
|
|
|
```
|
|
|
|
|
2022-09-04 02:34:43 +00:00
|
|
|
**--base,-b**="": Ref to base from (default: `main`)
|
2022-09-03 21:58:02 +00:00
|
|
|
|
|
|
|
|
|
|
|
**--help**: Show help
|
|
|
|
|
|
|
|
|
2022-09-05 03:09:49 +00:00
|
|
|
**--ide,-i**: Open an IDE for the new branch
|
|
|
|
|
|
|
|
|
2022-09-04 02:34:43 +00:00
|
|
|
**--list,-l**: List branches available
|
2022-09-04 02:08:43 +00:00
|
|
|
|
|
|
|
|
2022-09-04 02:34:43 +00:00
|
|
|
**--no-fetch,-nf**: Skip fetching
|
2022-09-03 21:58:02 +00:00
|
|
|
|
|
|
|
|
|
|
|
-----
|
|
|
|
|
|
|
|
## frontport
|
|
|
|
|
|
|
|
frontport cherry-picks a commit and applies it to a clean branch based on `release`
|
|
|
|
|
|
|
|
|
|
|
|
```
|
2022-09-04 02:34:43 +00:00
|
|
|
[--from,-f]=[value]
|
2022-09-03 21:58:02 +00:00
|
|
|
[--help]
|
2022-09-04 02:34:43 +00:00
|
|
|
[--to,-t]=[value]
|
2022-09-03 21:58:02 +00:00
|
|
|
```
|
|
|
|
**Usage**:
|
|
|
|
|
|
|
|
```
|
|
|
|
frontport --from [release=latest] --to [release=main]
|
|
|
|
```
|
|
|
|
|
2022-12-27 03:01:50 +00:00
|
|
|
**--from,-f**="": Release to frontport from (ex: `17`, default: <latest>)
|
2022-09-03 21:58:02 +00:00
|
|
|
|
|
|
|
|
|
|
|
**--help**: Show help
|
|
|
|
|
|
|
|
|
2022-09-04 02:34:43 +00:00
|
|
|
**--to,-t**="": Release to frontport to (ex: `main`, default: `main`)
|
2022-09-03 21:58:02 +00:00
|
|
|
|
|
|
|
|
2022-09-04 02:08:43 +00:00
|
|
|
-----
|
|
|
|
|
|
|
|
## ide
|
|
|
|
|
|
|
|
ide starts an IDE for `branch`
|
|
|
|
|
|
|
|
|
|
|
|
```
|
|
|
|
[--help]
|
|
|
|
```
|
|
|
|
**Usage**:
|
|
|
|
|
|
|
|
```
|
|
|
|
ide <branch>
|
|
|
|
```
|
|
|
|
|
|
|
|
**--help**: Show help
|
|
|
|
|
|
|
|
|
2022-09-03 21:58:02 +00:00
|
|
|
-----
|
|
|
|
|
|
|
|
## init
|
|
|
|
|
|
|
|
init initializes a workspace for Gitea
|
|
|
|
|
|
|
|
|
|
|
|
```
|
|
|
|
[--help]
|
|
|
|
```
|
|
|
|
**Usage**:
|
|
|
|
|
|
|
|
```
|
|
|
|
init
|
|
|
|
```
|
|
|
|
|
|
|
|
**--help**: Show help
|
|
|
|
|
|
|
|
|
2022-12-27 03:01:50 +00:00
|
|
|
-----
|
|
|
|
|
|
|
|
## post
|
|
|
|
|
|
|
|
post creates a new blog release post
|
|
|
|
|
|
|
|
|
|
|
|
```
|
|
|
|
[--author,-a]=[value]
|
|
|
|
[--changelog,-c]=[value]
|
|
|
|
[--help]
|
|
|
|
[--milestone,-m]=[value]
|
|
|
|
[--output,-o]=[value]
|
|
|
|
```
|
|
|
|
**Usage**:
|
|
|
|
|
|
|
|
```
|
|
|
|
post
|
|
|
|
```
|
|
|
|
|
|
|
|
**--author,-a**="": Post author
|
|
|
|
|
|
|
|
|
|
|
|
**--changelog,-c**="": Post changelog (no header)
|
|
|
|
|
|
|
|
|
|
|
|
**--help**: Show help
|
|
|
|
|
|
|
|
|
|
|
|
**--milestone,-m**="": Post milestone
|
|
|
|
|
|
|
|
|
|
|
|
**--output,-o**="": Output file (default: `content/post/release-of-${milestone}.md`)
|
|
|
|
|
|
|
|
|
2022-09-03 21:58:02 +00:00
|
|
|
-----
|
|
|
|
|
2022-09-04 02:08:43 +00:00
|
|
|
## pr
|
|
|
|
|
|
|
|
pr pulls down a pull request for testing
|
|
|
|
|
|
|
|
|
|
|
|
```
|
|
|
|
[--help]
|
2022-09-04 02:34:43 +00:00
|
|
|
[--ide,-i]
|
2022-09-04 02:08:43 +00:00
|
|
|
```
|
|
|
|
**Usage**:
|
|
|
|
|
|
|
|
```
|
|
|
|
pr <index>
|
|
|
|
```
|
|
|
|
|
|
|
|
**--help**: Show help
|
|
|
|
|
|
|
|
|
2022-09-04 02:34:43 +00:00
|
|
|
**--ide,-i**: Start an IDE for this PR
|
2022-09-04 02:08:43 +00:00
|
|
|
|
|
|
|
|
|
|
|
-----
|
|
|
|
|