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
- Host: GitHub
- URL: https://github.com/bezhermoso/jump-to-git-root
- Owner: bezhermoso
- License: mit
- Created: 2018-06-24T16:58:51.000Z (about 8 years ago)
- Default Branch: master
- Last Pushed: 2023-07-27T05:11:39.000Z (almost 3 years ago)
- Last Synced: 2023-08-02T04:57:03.488Z (almost 3 years ago)
- Topics: git, shell-script, workflow
- Language: Shell
- Size: 8.79 KB
- Stars: 3
- Watchers: 1
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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
```