Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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: 24 days 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 (over 7 years ago)
- Default Branch: master
- Last Pushed: 2019-10-07T06:03:23.000Z (about 5 years ago)
- Last Synced: 2024-06-20T03:33:12.059Z (5 months ago)
- Topics: cli, git, golang
- Language: Go
- Homepage:
- Size: 11.7 KB
- Stars: 15
- Watchers: 3
- 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.[![asciicast](https://asciinema.org/a/2ivqfsaz672d36l596tdop51l.png)](https://asciinema.org/a/2ivqfsaz672d36l596tdop51l)
## Usage
```
$ git recent-branch -h
NAME:
git-recent-branchUSAGE:
git-recent-branch [global options] command [command options] [arguments...]VERSION:
0.2.0AUTHOR:
sachaosCOMMANDS:
help, h Shows a list of commands or help for one commandGLOBAL 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)