Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

git-jump

Package Overview
Dependencies
Maintainers
1
Versions
17
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

git-jump

Git Branches Helper

  • 0.1.5
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
4
decreased by-20%
Maintainers
1
Weekly downloads
 
Created
Source

git-jump CLI logo

Git Branches Helper

All native git switch ⋯ features, plus:

  • Interactive UI to view and switch branches
  • Branches are sorted by usage recency
  • Fuzzy search

See how it looks.

Install

npm i -g git-jump

Usage

git jump

Run without arguments to launch interactive UI.

  • At first, branches are not sorted. Once you start switching around, git jump will track the history and sort the list, so that the most recently used branches are at the top and can be accessed faster.
  • Navigate the list with ↓↑ arrows and hit enter ⏎ to switch into selected branch.
  • On the left hand side of the list you'll see a number next to a brunch name. Use Option+<number> for quick switch (Alt+<number> on Windows and Linux).
  • Start typing to filter the list. The search is fuzzy, you don't have to be precise.

git jump <branch name>

Switches to a branch. <branch name> can be just part of the name, git jump will look for the best matching branch.


git jump [--list | -l]

Shows a plain list of branches without interactive UI but with sorting.


git jump <any native switch arguments>

You can use git jump as a drop-in replacement for native git switch. git jump will proxy all the argument to the native command, so you don't have to think to use one or the other.

For example git jump my-branch --track origin/main --quiet works just fine.


git jump new <branch name>

Creates a new branch and switches into it.


git jump rename <branch name> <new branch name>

Renames a branch.


git jump delete <branch name>

Deletes a branch. No fuzzy matching here, of course🙂.

How It Looks In Action

git jump interactive interface

How To Enable Option/Alt+<number> Shortcut

It might be disabled by default in your terminal, here is how to make it work in some apps.

iTerm 2

In Preferences go to Profiles, select your profile and go to Keys. At the bottom set Left Option (⌥) Key to Esc+.

iTerm 2 app preferences window

macOS Terminal

In Preferences go to Profiles, select your profile and go to Keyboard. Enable Use Option as Meta key checkbox.

macOS Terminal app preferences window

Hyper

Open .hyper.js and add next line to the config section:

modifierKeys: { altIsMeta: true }

Keywords

FAQs

Package last updated on 05 Sep 2020

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc