Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/tchoupinax/git-branch
Tools to easily switch and view your git branches
https://github.com/tchoupinax/git-branch
Last synced: about 1 month ago
JSON representation
Tools to easily switch and view your git branches
- Host: GitHub
- URL: https://github.com/tchoupinax/git-branch
- Owner: Tchoupinax
- Created: 2022-02-12T11:52:14.000Z (almost 3 years ago)
- Default Branch: master
- Last Pushed: 2024-10-17T11:32:57.000Z (4 months ago)
- Last Synced: 2024-10-19T15:21:18.955Z (3 months ago)
- Language: Go
- Size: 104 KB
- Stars: 2
- Watchers: 3
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# git-branch
`gb` is your friendly tool to easily switch between branches in your git repository. You can also view theirs, manage and get more control!
## Installation
The tool is available for all platforms (Linux, macOS, Windows) on this [page](https://github.com/Tchoupinax/git-branch/releases). You can also use your favorite package manager to easily install and update `git-branch`.
### Linux
```
curl https://raw.githubusercontent.com/Tchoupinax/git-branch/master/scripts/installation-linux.sh | bash
```### macOS
```
brew tap tchoupinax/brew
brew install tchoupinax/brew/gb
```## Usage
Go in a git repository and type `gb` :).
The list of all branches will appear, you can then swith to one by typing the number at the start of the line.
Also, you can provide the number of the branch directly
```bash
gb $number
```![Demo](.github/assets/demo.png "Display how the program works")
## Development
```
npx nodemon -e go --exec "go build -o main *.go || exit 1"
---
main
```https://github.com/reinhrst/fzf-lib