Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/snirsh/zsh-git-utils
A small Oh My Zsh plugin that allows you to use `gswp` to switch using PR number
https://github.com/snirsh/zsh-git-utils
Last synced: 29 days ago
JSON representation
A small Oh My Zsh plugin that allows you to use `gswp` to switch using PR number
- Host: GitHub
- URL: https://github.com/snirsh/zsh-git-utils
- Owner: snirsh
- License: mit
- Created: 2024-11-04T10:35:31.000Z (2 months ago)
- Default Branch: main
- Last Pushed: 2024-11-04T11:19:44.000Z (2 months ago)
- Last Synced: 2024-11-04T11:31:28.436Z (2 months ago)
- Language: Shell
- Size: 0 Bytes
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Git Utils Zsh Plugin
This Oh My Zsh plugin provides utilities for Git and Yarn, including:
- A function to switch Git branches by Pull Request (PR) number.## Features
- **Switch Branch by PR Number**: Quickly switch to the branch associated with a specific PR number, using `gswp `.
- **Create a PR based on the latest commit message**: This will automatically create a PR using the latest commit message for the branch name and PR title `create-pr` (you can also pass params for `gh pr create` which it uses behind the scenes thanks to [@ChenK14](https://github.com/ChenK14) for the motivation and idea)
## Requirements
- **GitHub CLI (`gh`)**: This plugin requires the GitHub CLI to switch branches by PR number. If you haven't installed it yet, you can find instructions [here](https://cli.github.com/).
## Installation
1. **Clone the Repository**:
Clone this repository into your Oh My Zsh custom plugins directory:```bash
git clone https://github.com/snirsh/zsh-git-utils.git ~/.oh-my-zsh/custom/plugins/git-utils
```
2. **Add this to your `~/.zshrc`**
```bash
plugins=(... git-utils)
```
4. **Reload ZSH**
```bash
source ~/.zshrc
```