{ "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": "
\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
\u5c11\u3057\u8a66\u3057\u3066\u307f\u307e\u3057\u305f\uff0e
\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~/.local/bin \u3092\u52a0\u3048\u308b)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\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$ 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