LoginSignup
2
1

More than 5 years have passed since last update.

GitHubにあるリポジトリを直接カレントディレクトリに展開する

Posted at

sasaplus1-prototype/webpack-base-configにwebpackの設定などがしてあるリポジトリがあるので、それを直接カレントディレクトリに展開したい。

$ curl -L https://github.com/sasaplus1-prototype/webpack-base-config/archive/master.tar.gz | tar xvfz - --strip-components 1

これでできた。簡単(?)便利₍₍ (ง ˘ω˘ )ว ⁾⁾

でもリポジトリのURLに/archive/master.tar.gzを足す、というのと- --strip-components 1を足すというのを覚えてられないかも。git clone [URL] --separate-git-dir=/tmpの方がまだ覚えられそう。

2
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
2
1