Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/jonny64/mr-git-cli
yet another git flow cli
https://github.com/jonny64/mr-git-cli
cli git gitlab shift-left
Last synced: about 1 month ago
JSON representation
yet another git flow cli
- Host: GitHub
- URL: https://github.com/jonny64/mr-git-cli
- Owner: jonny64
- Created: 2024-09-03T18:02:54.000Z (4 months ago)
- Default Branch: main
- Last Pushed: 2024-11-19T10:02:16.000Z (about 1 month ago)
- Last Synced: 2024-11-19T11:18:43.769Z (about 1 month ago)
- Topics: cli, git, gitlab, shift-left
- Language: JavaScript
- Homepage: https://npmjs.com/package/mr-git-cli
- Size: 254 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 12
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
`mr` groups common `git` commands into batches; let's see it in action:
```
$ mr TASK-4242
Create new branch 'TASK-4242' from 'origin/main' [Y/n]? y
> git fetch
> git switch --guess --merge --create TASK-4444 origin/main
Switched to a new branch 'TASK-4444'
$ mr main
> git switch --merge --guess release
$ mr TASK-4242
> git switch --merge --guess TASK-4242$ git commit -m "TASK-4242 branch first commit msg"
$ mr TASK-4242 to test
> git push --set-upstream origin TASK-4242:TASK-4242
-o merge_request.create -o merge_request.target=master
-o merge_request.title='TASK-4242 branch first commit msg'
remote: View merge request for TASK-4242:
remote: https://gitlab.local/jonny64/mr-git-cli/-/merge_requests/1
* [new branch] TASK-4242 -> TASK-4242
> git switch test
> git merge origin/TASK-4242
> npm test
> git push$ mr TASK-4242 to main
> git switch main
> git merge origin/TASK-4242
> npm test
> git push
```
see https://github.com/jonny64/mr-git-cli/wiki for details