https://github.com/nlfmt/git-switch-branch
quickly switch between branches in a repository using a visual selector in the terminal
https://github.com/nlfmt/git-switch-branch
branch checkout cli git switch terminal
Last synced: about 1 year ago
JSON representation
quickly switch between branches in a repository using a visual selector in the terminal
- Host: GitHub
- URL: https://github.com/nlfmt/git-switch-branch
- Owner: nlfmt
- License: mit
- Created: 2024-12-28T01:19:10.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2025-01-09T23:29:29.000Z (over 1 year ago)
- Last Synced: 2025-04-21T07:23:11.116Z (about 1 year ago)
- Topics: branch, checkout, cli, git, switch, terminal
- Language: Rust
- Homepage:
- Size: 14.6 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# git-switch-branch
`git-switch-branch` lets you quickly switch between git branches using a visual menu in your terminal
## Installation
This cli can be installed using `cargo`:
```
cargo install git-switch-branch
```
You can then run it directly using `git-switch-branch`, or configure an alias:
```
git-switch-branch alias add
```
## Usage
To start the branch selection menu, just run:
```
git sw
```
*Note: This assumes you've set the alias `sw`*
To view only remote branches:
```
git sw remote
```
To view all branches:
```
git sw all
```
## Uninstall
First, make sure to remove any existing aliases:
```
git-switch-branch alias remove
```
or
```
git alias remove
```
then, uninstall it using cargo:
```
cargo uninstall git-switch-branch
```
## License
This project is licensed under the MIT License - see the dedicated [LICENSE](LICENSE) file for details.