https://github.com/sachaos/git-recent-branch
List recent visited branches with visit time.
https://github.com/sachaos/git-recent-branch
cli git golang
Last synced: 5 months ago
JSON representation
List recent visited branches with visit time.
- Host: GitHub
- URL: https://github.com/sachaos/git-recent-branch
- Owner: sachaos
- License: mit
- Created: 2017-04-30T14:39:25.000Z (almost 9 years ago)
- Default Branch: master
- Last Pushed: 2019-10-07T06:03:23.000Z (over 6 years ago)
- Last Synced: 2025-09-14T07:44:47.339Z (6 months ago)
- Topics: cli, git, golang
- Language: Go
- Homepage:
- Size: 11.7 KB
- Stars: 16
- Watchers: 2
- Forks: 1
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- Funding: .github/FUNDING.yml
- License: LICENSE
Awesome Lists containing this project
README
# git-recent-branch
## Description
git subcommand.
List recent visited branches with visit time.
[](https://asciinema.org/a/2ivqfsaz672d36l596tdop51l)
## Usage
```
$ git recent-branch -h
NAME:
git-recent-branch
USAGE:
git-recent-branch [global options] command [command options] [arguments...]
VERSION:
0.2.0
AUTHOR:
sachaos
COMMANDS:
help, h Shows a list of commands or help for one command
GLOBAL OPTIONS:
--csv output in CSV format
--no-unique show not unique logs
-n value num of entry (default: 10)
--help, -h show help
--version, -v print the version
```
## Install
To install, use `go get`:
```bash
$ go get -d github.com/sachaos/git-recent-branch
```
### Use with peco
**RECOMMENDED**
install *peco* and load `git-recent-branch_functions.sh` on your `.zshrc`, like below.
```
$ source "$GOPATH/src/github.com/sachaos/git-recent-branch/todoist_functions.sh"
```
#### keybind
```
: select branch by peco, and insert command line buffer.
```
## Contribution
1. Fork ([https://github.com/sachaos/git-recent-branch/fork](https://github.com/sachaos/git-recent-branch/fork))
1. Create a feature branch
1. Commit your changes
1. Rebase your local changes against the master branch
1. Run test suite with the `go test ./...` command and confirm that it passes
1. Run `gofmt -s`
1. Create a new Pull Request
## Author
[sachaos](https://github.com/sachaos)