Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/dyne/gh-cd
- Owner: dyne
- Created: 2022-12-15T08:32:56.000Z (about 2 years ago)
- Default Branch: main
- Last Pushed: 2023-03-14T15:25:30.000Z (almost 2 years ago)
- Last Synced: 2024-05-01T09:46:58.184Z (8 months ago)
- Topics: gh-extension
- Language: Go
- Homepage:
- Size: 22.8 MB
- Stars: 2
- Watchers: 3
- Forks: 0
- Open Issues: 8
-
Metadata Files:
- Readme: README.md
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