Ecosyste.ms: Awesome

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

Awesome Lists | Featured Topics | Projects

https://github.com/dyne/gh-cd

🚀 cd || clone || repo create
https://github.com/dyne/gh-cd

gh-extension

Last synced: about 2 months ago
JSON representation

🚀 cd || clone || repo create

Awesome Lists containing this project

README

        

Simple `gh` extension to `clone` and `cd` into a repository or 'repo create'.

# 🏃 Getting started
To start using it, just clone the repository, run
```bash
gh ext install dyne/gh-cd
```

Now, as soon as you run `gh cd [account] [repository]` the command will create a new repository at `github.com/account/repository` (if it doesn't exists), otherwise will clone it locally and `cd` into it.
If the repo is already cloned, it simply `cd` to the directory.

# 👷 Config
Configuratin happen through the file `~/.gitconfig`, in the section `gh-cd`. There are two possible keys:
- `basedir`: the absolute path in which we will clone the repository
- `protocol`: which can be `ssh` or `https`
- `create-repo`: create repo if it doesn't exist
- `shell-cmd`: shell to be run in the directory repo