An open API service indexing awesome lists of open source software.

https://github.com/bezhermoso/jump-to-git-root

Simple shell utility to jump back to a Git repo's project root
https://github.com/bezhermoso/jump-to-git-root

git shell-script workflow

Last synced: 11 months ago
JSON representation

Simple shell utility to jump back to a Git repo's project root

Awesome Lists containing this project

README

          

# jump-to-git-root

Simple ZSH utility to jump back to the Git repo's root directory.

Can pierce through submodule: when already at a submodule's root directory, invoking it
will jump you to the parent repo's root directory.

## Setup

Clone this repository:

```sh
git clone https://github.com/bezhermoso/jump-to-git-root.git /usr/local/share

```

Add the `functions` directory of this repo to your `fpath`:

```sh
# Add to fpath
fpath+=('/usr/local/share/jump-to-git-root/functions')

# RECOMMENDED: Assign to a short alias:
alias gr=jump-to-git-root
```