https://github.com/lgg/gco
Script for git clone project and opening it in specified JetBrains IDE
https://github.com/lgg/gco
appcode clion datagrip gitclone intellij intellij-idea jetbrains jetbrains-ides phpstorm pycharm pycharm-community rider rubymine scripts webstorm
Last synced: about 1 month ago
JSON representation
Script for git clone project and opening it in specified JetBrains IDE
- Host: GitHub
- URL: https://github.com/lgg/gco
- Owner: lgg
- Created: 2019-10-13T00:23:43.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2020-01-10T21:21:26.000Z (over 5 years ago)
- Last Synced: 2025-01-28T00:41:42.176Z (3 months ago)
- Topics: appcode, clion, datagrip, gitclone, intellij, intellij-idea, jetbrains, jetbrains-ides, phpstorm, pycharm, pycharm-community, rider, rubymine, scripts, webstorm
- Language: Shell
- Size: 5.86 KB
- Stars: 0
- Watchers: 3
- Forks: 1
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# gco script
Script for git clone and open project in specified JetBrains IDE
## Installation
#### Create Command-line Launcher for JetBrains IDE
* [Idea](https://www.jetbrains.com/help/idea/opening-files-from-command-line.html)
* [PyCharm](https://www.jetbrains.com/help/pycharm/opening-files-from-command-line.html)
* [Rider](https://www.jetbrains.com/help/rider/Working_with_the_IDE_Features_from_Command_Line.html)
* [Clion](https://www.jetbrains.com/help/clion/opening-files-from-command-line.html)
* [DataGrip](https://www.jetbrains.com/help/datagrip/opening-files-from-command-line.html)
* [AppCode](https://www.jetbrains.com/help/objc/working-with-the-ide-features-from-command-line.html)
* [WebStorm](https://www.jetbrains.com/help/webstorm/opening-files-from-command-line.html)
* [PhpStorm](https://www.jetbrains.com/help/phpstorm/opening-files-from-command-line.html)
* [RubyMine](https://www.jetbrains.com/help/ruby/working-with-the-ide-features-from-command-line.html)#### Install script
* add gco script to `~/.local/bin/`
* add bash aliases `vi ~/.bash_aliases`
* add needed commands, e.g:
```bash
alias gcow='gco -w'
alias gcop='gco -p'
```## Usage
* Help: `gco -h`
* `gco -APP URL FOLDER`By default this script converts any git_url to ssh url (git@), to avoid this: use -o flag
* `gco -APP -o URL FOLDER`
#### Usage examples
* `gco -w URL FOLDER`
* `gco -p URL FOLDER`
* `gco -p -o URL FOLDER`
* `gco -o -w URL FOLDER`#### Usage examples with bash aliases
* `gcow URL FOLDER`
* `gcow -o URL FOLDER`## License
* MIT, 2019, [lgg](https://github.com/lgg)