{ "version": "https://jsonfeed.org/version/1.1", "user_comment": "This feed allows you to read the posts from this site in any feed reader that supports the JSON Feed format. To add this feed to your reader, copy the following URL -- https://matoken.org/blog/tag/github/feed/json/ -- and add it your reader.", "home_page_url": "https://matoken.org/blog/tag/github/", "feed_url": "https://matoken.org/blog/tag/github/feed/json/", "language": "ja", "title": "GitHub – matoken's blog", "description": "Is there no plan B?", "icon": "https://matoken.org/blog/wp-content/uploads/2025/03/cropped-1865f695c4eecc844385acef2f078255036adccd42c254580ea3844543ab56d9.jpeg", "items": [ { "id": "http://matoken.org/blog/?p=3029", "url": "https://matoken.org/blog/2021/03/02/github-clone-which-allows-you-to-download-a-specific-directory-or-less-of-a-repository-from-github-com/", "title": "GitHub.com\u306e\u30ea\u30dd\u30b8\u30c8\u30ea\u306e\u7279\u5b9a\u306e\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u4ee5\u4e0b\u3092\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9\u3067\u304d\u308b\u300cGitHub clone\u300d", "content_html": "
\n

\u5927\u304d\u306aGit\u30ea\u30dd\u30b8\u30c8\u30ea\u3092clone\u3059\u308b\u3068\u6642\u9593\u304c\u304b\u304b\u308a\u307e\u3059\uff0e\u6700\u65b0\u306e\u3082\u306e\u3060\u3051\u304c\u6b32\u3057\u3044\u5834\u5408\u306f --depth \u30aa\u30d7\u30b7\u30e7\u30f3\u304c\u3042\u308a\u307e\u3059\u304c\uff0c\u30ea\u30dd\u30b8\u30c8\u30ea\u306e\u4e00\u90e8\u306e\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u4ee5\u4e0b\u3060\u3051\u304c\u6b32\u3057\u3044\u6642\u306b\u306f\u4f7f\u3048\u307e\u305b\u3093\uff0e\u305d\u3046\u3044\u3046\u3068\u304d\u306bGitHub clone\u3092\u4f7f\u3046\u3068\uff0c\u7279\u5b9a\u306e\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u4ee5\u4e0b\u3060\u3051\u3092\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9\u3067\u304d\u3066\u4fbf\u5229\u305d\u3046\u3067\u3059\uff0e

\n
\n
\n\n
\n
\n

\u5c11\u3057\u8a66\u3057\u3066\u307f\u307e\u3057\u305f\uff0e

\n
\n
\n
\n
$ pip3 install git+git://github.com/HR/github-clone#egg=ghclone (1)\n$ ghclone (2)\nUsage:\n  ghclone <url> [-t | --token=<token>]\n  ghclone (-h | --help)\n  ghclone (-v | --version)\n$ ghclone https://github.com/torvalds/linux/tree/master/tools/usb/usbip (3)\nCloning into 'usbip'...\ndone.\n$ cd usbip\n$ ls -A (4)\n.gitignore  AUTHORS  COPYING  INSTALL  Makefile.am  README  autogen.sh  cleanup.sh  configure.ac  doc  libsrc  src  vudc\n$ git status (5)\nfatal: not a git repository (or any of the parent directories): .git\n$ cd ..\n$ ghclone https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/tree/Documentation/usb (6)\nInvalid GitHub URI
\n
\n
\n
\n
    \n
  1. pip\u3067\u5c0e\u5165\u3059\u308b(\u3082\u3057PATH\u304c\u901a\u3063\u3066\u306a\u3051\u308c\u3070 ~/.local/bin \u3092\u52a0\u3048\u308b)
  2. \n
  3. USAGE
  4. \n
  5. Linux Kernel\u306e\u4e00\u90e8\u3060\u3051\u3092\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9
  6. \n
  7. \u30c0\u30a6\u30f3\u30ed\u30fc\u30c9\u5185\u5bb9\u78ba\u8a8d
  8. \n
  9. Git\u7ba1\u7406\u306f\u3055\u308c\u3066\u3044\u306a\u3044
  10. \n
  11. GitHub\u4ee5\u5916\u306eGit\u30ea\u30dd\u30b8\u30c8\u30ea\u306b\u5bfe\u3057\u3066\u5b9f\u884c\u3059\u308b\u3068\u5931\u6557\u3059\u308b
  12. \n
\n
\n
\n

GitHub.com\u306eAPI\u3092\u5229\u7528\u3057\u3066\u3044\u308b\u306e\u3067GitHub.com\u4ee5\u5916\u3067\u306f\u4f7f\u3048\u307e\u305b\u3093\u304c\u4fbf\u5229\u305d\u3046\u3067\u3059\uff0e

\n
\n
\n

\u4f3c\u305f\u3082\u306e\u306bBitBacket\u3067\u540c\u69d8\u306e\u3053\u3068\u304c\u3067\u304d\u308b\uff0c\u300cbb-clone\u300d\u3068\u3044\u3046\u3082\u306e\u3082\u3042\u308b\u3088\u3046\u3067\u3059\uff0e

\n
\n
\n\n
\n
\n
\u74b0\u5883
\n
\n
$ ghclone -v\n1.2.0\n$ dpkg-query -W git python3-pip python3\ngit     1:2.20.1-2+deb10u3\npython3 3.7.3-1\npython3-pip     18.1-5+rpt1\n$ lsb_release -dr\nDescription:    Raspbian GNU/Linux 10 (buster)\nRelease:        10\n$ uname -a\nLinux raspberrypi 5.10.11-v7+ #1399 SMP Thu Jan 28 12:06:05 GMT 2021 armv7l GNU/Linux\n$ cat /proc/device-tree/model ;echo\nRaspberry Pi 3 Model B Rev 1.2
\n
\n
\n", "content_text": "\u5927\u304d\u306aGit\u30ea\u30dd\u30b8\u30c8\u30ea\u3092clone\u3059\u308b\u3068\u6642\u9593\u304c\u304b\u304b\u308a\u307e\u3059\uff0e\u6700\u65b0\u306e\u3082\u306e\u3060\u3051\u304c\u6b32\u3057\u3044\u5834\u5408\u306f --depth \u30aa\u30d7\u30b7\u30e7\u30f3\u304c\u3042\u308a\u307e\u3059\u304c\uff0c\u30ea\u30dd\u30b8\u30c8\u30ea\u306e\u4e00\u90e8\u306e\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u4ee5\u4e0b\u3060\u3051\u304c\u6b32\u3057\u3044\u6642\u306b\u306f\u4f7f\u3048\u307e\u305b\u3093\uff0e\u305d\u3046\u3044\u3046\u3068\u304d\u306bGitHub clone\u3092\u4f7f\u3046\u3068\uff0c\u7279\u5b9a\u306e\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u4ee5\u4e0b\u3060\u3051\u3092\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9\u3067\u304d\u3066\u4fbf\u5229\u305d\u3046\u3067\u3059\uff0e\n\n\n\nHR/github-clone: \u2800git clone repo subdirectories\n\n\n\n\u5c11\u3057\u8a66\u3057\u3066\u307f\u307e\u3057\u305f\uff0e\n\n\n\n$ pip3 install git+git://github.com/HR/github-clone#egg=ghclone (1)\n$ ghclone (2)\nUsage:\n ghclone <url> [-t | --token=<token>]\n ghclone (-h | --help)\n ghclone (-v | --version)\n$ ghclone https://github.com/torvalds/linux/tree/master/tools/usb/usbip (3)\nCloning into 'usbip'...\ndone.\n$ cd usbip\n$ ls -A (4)\n.gitignore AUTHORS COPYING INSTALL Makefile.am README autogen.sh cleanup.sh configure.ac doc libsrc src vudc\n$ git status (5)\nfatal: not a git repository (or any of the parent directories): .git\n$ cd ..\n$ ghclone https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/tree/Documentation/usb (6)\nInvalid GitHub URI\n\n\n\n\npip\u3067\u5c0e\u5165\u3059\u308b(\u3082\u3057PATH\u304c\u901a\u3063\u3066\u306a\u3051\u308c\u3070 ~/.local/bin \u3092\u52a0\u3048\u308b)\nUSAGE\nLinux Kernel\u306e\u4e00\u90e8\u3060\u3051\u3092\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9\n\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9\u5185\u5bb9\u78ba\u8a8d\nGit\u7ba1\u7406\u306f\u3055\u308c\u3066\u3044\u306a\u3044\nGitHub\u4ee5\u5916\u306eGit\u30ea\u30dd\u30b8\u30c8\u30ea\u306b\u5bfe\u3057\u3066\u5b9f\u884c\u3059\u308b\u3068\u5931\u6557\u3059\u308b\n\n\n\nGitHub.com\u306eAPI\u3092\u5229\u7528\u3057\u3066\u3044\u308b\u306e\u3067GitHub.com\u4ee5\u5916\u3067\u306f\u4f7f\u3048\u307e\u305b\u3093\u304c\u4fbf\u5229\u305d\u3046\u3067\u3059\uff0e\n\n\n\u4f3c\u305f\u3082\u306e\u306bBitBacket\u3067\u540c\u69d8\u306e\u3053\u3068\u304c\u3067\u304d\u308b\uff0c\u300cbb-clone\u300d\u3068\u3044\u3046\u3082\u306e\u3082\u3042\u308b\u3088\u3046\u3067\u3059\uff0e\n\n\n\nbb-clone\n\n\n\n\u74b0\u5883\n\n$ ghclone -v\n1.2.0\n$ dpkg-query -W git python3-pip python3\ngit 1:2.20.1-2+deb10u3\npython3 3.7.3-1\npython3-pip 18.1-5+rpt1\n$ lsb_release -dr\nDescription: Raspbian GNU/Linux 10 (buster)\nRelease: 10\n$ uname -a\nLinux raspberrypi 5.10.11-v7+ #1399 SMP Thu Jan 28 12:06:05 GMT 2021 armv7l GNU/Linux\n$ cat /proc/device-tree/model ;echo\nRaspberry Pi 3 Model B Rev 1.2", "date_published": "2021-03-02T08:40:47+09:00", "date_modified": "2021-03-02T02:41:23+09:00", "authors": [ { "name": "matoken", "url": "https://matoken.org/blog/author/matoken/", "avatar": "https://secure.gravatar.com/avatar/38f5f3b575c5eb45cda6aa659bca119ac7a5e16b46565e869d0030e3bd66981d?s=512&d=mm&r=g" } ], "author": { "name": "matoken", "url": "https://matoken.org/blog/author/matoken/", "avatar": "https://secure.gravatar.com/avatar/38f5f3b575c5eb45cda6aa659bca119ac7a5e16b46565e869d0030e3bd66981d?s=512&d=mm&r=g" }, "tags": [ "git", "GitHub", "Buster", "Linux", "Raspberry Pi OS" ] } ] }