Skip to content

sachaos/git-recent-branch

Repository files navigation

git-recent-branch

Description

git subcommand. List recent visited branches with visit time.

asciicast

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:

$ 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

<C-g> <C-r>: select branch by peco, and insert command line buffer.

Contribution

  1. Fork (https://github.com/sachaos/git-recent-branch/fork)
  2. Create a feature branch
  3. Commit your changes
  4. Rebase your local changes against the master branch
  5. Run test suite with the go test ./... command and confirm that it passes
  6. Run gofmt -s
  7. Create a new Pull Request

Author

sachaos

About

List recent visited branches with visit time.

Topics

Resources

License

Stars

Watchers

Forks

Sponsor this project

 

Packages

No packages published