An open API service indexing awesome lists of open source software.

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

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.