1
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

ghq get できなかったから get ghq した

1
Last updated at Posted at 2019-02-05

環境

macOS mojave
ghq 0.8.0

やろうとしたこと

ghq get git@github.com:c7t1012/repo.git
って長いので
ghq get -p c7t1012/repo
で簡単にgetしようとした

(-p はssh接続を指定するオプション)

エラー

$ ghq get -p c7t1012/repo
     error Not a valid repository: ssh://git@github.com//c7t1012/repo

なんか知らんけどユーザ名の前の/が1つ多い

解決策

getっていうツールを入れた

インストール

Goを入れる

brew install goなど

GOPATHを設定

fishの場合

set -x GOPATH $HOME/.go
set -x PATH $GOPATH/bin $PATH

go getする

go get github.com/pocke/get

使い方

get ghq user/repo

1
1
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?