{"id":1397,"date":"2024-09-27T15:32:53","date_gmt":"2024-09-27T07:32:53","guid":{"rendered":"https:\/\/cabit.top\/?p=1397"},"modified":"2024-11-01T10:20:13","modified_gmt":"2024-11-01T02:20:13","slug":"github-stata","status":"publish","type":"post","link":"https:\/\/cabit.top\/?p=1397","title":{"rendered":"\u7528\u4e8e\u4ece GitHub \u6784\u5efa\u3001\u641c\u7d22\u3001\u5b89\u88c5\u548c\u7ba1\u7406 Stata \u5305\u7684\u6a21\u5757"},"content":{"rendered":"\n<div class=\"wp-block-columns is-layout-flex wp-container-core-columns-is-layout-9d6595d7 wp-block-columns-is-layout-flex\">\n<div class=\"wp-block-column is-layout-flow wp-block-column-is-layout-flow\">\n<div class=\"wp-block-buttons is-layout-flex wp-block-buttons-is-layout-flex\">\n<div class=\"wp-block-button has-custom-width wp-block-button__width-100\"><a class=\"wp-block-button__link wp-element-button\" href=\"https:\/\/github.com\/haghish\/github\" target=\"_blank\" rel=\"noreferrer noopener\">\u4eceGITHUB\u4e0a\u67e5\u770b<\/a><\/div>\n<\/div>\n<\/div>\n\n\n\n<div class=\"wp-block-column is-layout-flow wp-block-column-is-layout-flow\">\n<div class=\"wp-block-buttons is-layout-flex wp-block-buttons-is-layout-flex\">\n<div class=\"wp-block-button\"><a class=\"wp-block-button__link wp-element-button\" href=\"https:\/\/github.com\/haghish\/github\/zipball\/master\" target=\"_blank\" rel=\"noreferrer noopener\">\u4e0b\u8f7d.zip<\/a><\/div>\n<\/div>\n<\/div>\n\n\n\n<div class=\"wp-block-column is-layout-flow wp-block-column-is-layout-flow\">\n<div class=\"wp-block-buttons is-layout-flex wp-block-buttons-is-layout-flex\">\n<div class=\"wp-block-button has-custom-width wp-block-button__width-100\"><a class=\"wp-block-button__link wp-element-button\" href=\"https:\/\/github.com\/haghish\/github\/tarball\/master\" target=\"_blank\" rel=\"noreferrer noopener\">\u4e0b\u8f7d.tar.gz<\/a><\/div>\n<\/div>\n<\/div>\n<\/div>\n\n\n\n<p><strong>\u76ee\u5f55<\/strong><\/p>\n\n\n\n<ol class=\"wp-block-list\">\n<li><a href=\"#1-introduction\">\u4ecb\u7ecd<\/a><\/li>\n\n\n\n<li><a href=\"#2-installing-github-module\">\u5b89\u88c5<\/a><\/li>\n\n\n\n<li><a href=\"#3-syntax\">\u53e5\u6cd5<\/a><\/li>\n\n\n\n<li><a href=\"#4-subcommands\">\u5b50\u547d\u4ee4<\/a>\n<ol class=\"wp-block-list\">\n<li><a href=\"#41-installing-a-package\">\u5b89\u88c5\u5305<\/a><\/li>\n\n\n\n<li><a href=\"#42-searching-for-a-stata-package\">\u641c\u7d22 Stata \u5305<\/a><\/li>\n\n\n\n<li><a href=\"#43-managing-installed-packages\">\u7ba1\u7406\u5df2\u5b89\u88c5\u7684\u8f6f\u4ef6\u5305<\/a><\/li>\n\n\n\n<li><a href=\"#44-checking-a-stata-repository\">\u68c0\u67e5 Stata \u5b58\u50a8\u5e93<\/a><\/li>\n\n\n\n<li><a href=\"#45-uninstalling-a-package\">\u5378\u8f7d\u5305<\/a><\/li>\n\n\n\n<li><a href=\"#46-package-versions\">\u8f6f\u4ef6\u5305\u7248\u672c<\/a>\n<ol class=\"wp-block-list\">\n<li><a href=\"#461-installing-a-particular-version\">\u5b89\u88c5\u7279\u5b9a\u7248\u672c<\/a><\/li>\n\n\n\n<li><a href=\"#462-listing-all-previous-releases\">\u5217\u51fa\u6240\u6709\u5148\u524d\u7684\u7248\u672c<\/a><\/li>\n\n\n\n<li><a href=\"#463-getting-the-version-of-an-installed-package\">\u83b7\u53d6\u5df2\u5b89\u88c5\u5305\u7684\u7248\u672c<\/a><\/li>\n<\/ol>\n<\/li>\n\n\n\n<li><a href=\"#47-package-dependencies\">\u8f6f\u4ef6\u5305\u4f9d\u8d56\u9879<\/a><\/li>\n<\/ol>\n<\/li>\n\n\n\n<li><a href=\"#5-building-package-installation-files-automatically\">\u81ea\u52a8\u6784\u5efa\u5305\u5b89\u88c5\u6587\u4ef6<\/a><\/li>\n\n\n\n<li><a href=\"#6-list-of-stata-packages-recognized-by-gitget-command\"><code>gitget<\/code>\u547d\u4ee4\u8bc6\u522b\u7684 Stata \u8f6f\u4ef6\u5305\u5217\u8868<\/a><\/li>\n<\/ol>\n\n\n\n<h1 class=\"wp-block-heading\" id=\"1-introduction\">1. \u7b80\u4ecb<\/h1>\n\n\n\n<p>\u8fd1\u5e74\u6765\uff0cStata \u7528\u6237\u8d8a\u6765\u8d8a\u591a\u5730\u4f7f\u7528 GitHub \u6765\u5171\u4eab Stata \u4ee3\u7801\u548c\u6570\u636e\u96c6\u3001\u5f00\u53d1\u7edf\u8ba1\u8f6f\u4ef6\u548c\u6258\u7ba1 Stata \u5305\uff0c\u5982\u4e0b\u56fe\u6240\u793a\u3002\u8fd9\u5bf9 Stata \u793e\u533a\u548c\u4efb\u4f55\u4fc3\u8fdb\u7814\u7a76\u900f\u660e\u5ea6\u7684\u4eba\u6765\u8bf4\u90fd\u662f\u4e00\u4e2a\u597d\u6d88\u606f\uff01\u8be5<code>github<\/code>\u6a21\u5757\u65b9\u4fbf\u641c\u7d22\u3001\u5b89\u88c5\u3001\u7ba1\u7406\u751a\u81f3\u6784\u5efa Stata \u5305\u3002\u6b64\u5916\uff0c\u5b83\u8fd8\u5141\u8bb8\u5b89\u88c5\u5f00\u53d1\u7248\u672c\u6216\u7a33\u5b9a\u7248\u672c\u7684\u5305\u3002\u5b83\u8fd8\u5141\u8bb8\u6307\u5b9a\u5c06\u81ea\u52a8\u5b89\u88c5\u7684\u5305\u4f9d\u8d56\u9879\uff0c\u8fd9\u4f7f\u5f97 GitHub \u5bf9 Stata \u7528\u6237\u548c\u5f00\u53d1\u4eba\u5458\u66f4\u5177\u5438\u5f15\u529b\u3002\u5728\u8fd9\u91cc\uff0c\u6211\u5feb\u901f\u5411\u60a8\u5c55\u793a\u5982\u4f55\u5b89\u88c5\u548c\u4f7f\u7528\u8be5<code>github<\/code>\u5305\u3002<a href=\"https:\/\/github.com\/haghish\/github\/raw\/master\/images\/combined.png\"><\/a><\/p>\n\n\n\n<h1 class=\"wp-block-heading\">2. \u5b89\u88c5<code>github<\/code>\u6a21\u5757<\/h1>\n\n\n\n<p><code>github<\/code>\u60a8\u53ef\u4ee5\u901a\u8fc7\u6267\u884c\u4ee5\u4e0b\u4ee3\u7801\u6765\u5b89\u88c5\u6700\u65b0\u7248\u672c\u7684\u547d\u4ee4\uff1a<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>net install github, from(\"https:\/\/haghish.github.io\/github\/\")\n<\/code><\/pre>\n\n\n\n<h1 class=\"wp-block-heading\" id=\"3-syntax\">3.\u8bed\u6cd5<\/h1>\n\n\n\n<p>\u8be5\u5305\u7684\u4e00\u822c\u8bed\u6cd5\u53ef\u4ee5\u6982\u62ec\u4e3a\uff1a<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>github &#91;subcommand] &#91;...]\n<\/code><\/pre>\n\n\n\n<p>\u5176\u4e2d [<em>\u5b50\u547d\u4ee4<\/em>] \u53ef\u4ee5\u662f\uff1a<\/p>\n\n\n\n<figure class=\"wp-block-table is-style-stripes\"><table class=\"has-fixed-layout\"><thead><tr><th>\u5b50\u547d\u4ee4<\/th><th>\u63cf\u8ff0<\/th><\/tr><\/thead><tbody><tr><td><code>search<\/code><\/td><td>\u5728 GitHub \u4e0a\u67e5\u627e Stata \u5305<\/td><\/tr><tr><td><code>install<\/code><\/td><td>\u4ece GitHub \u5b89\u88c5\u5305<\/td><\/tr><tr><td><code>list<\/code><\/td><td>\u63d0\u4f9b\u6709\u5173\u968fgithub\u5b89\u88c5\u7684\u8f6f\u4ef6\u5305\u7684\u4fe1\u606f<\/td><\/tr><tr><td><code>query<\/code><\/td><td>\u5217\u51fa\u8f6f\u4ef6\u5305\u7684\u6240\u6709\u5148\u524d\u7248\u672c<\/td><\/tr><tr><td><code>check<\/code><\/td><td>\u6d4b\u8bd5\u5b58\u50a8\u5e93\u662f\u5426\u53ef\u5b89\u88c5<\/td><\/tr><tr><td><code>uninstall<\/code><\/td><td>\u4ece Stata \u4e2d\u5220\u9664\u4e00\u4e2a\u5305<\/td><\/tr><tr><td><code>update<\/code><\/td><td>\u4ece GitHub \u66f4\u65b0\u5305<\/td><\/tr><tr><td><code>version<\/code><\/td><td>\u8fd4\u56de\u5df2\u5b89\u88c5\u5305\u7684\u7248\u672c<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<p>\u5e76\u4e14 [&nbsp;<em>\u2026<\/em>&nbsp;] \u53ef\u4ee5\u6839\u636e\u6307\u5b9a\u7684\u5b50\u547d\u4ee4\u6765\u662f<em>\u7528\u6237\u540d\/\u5b58\u50a8\u5e93<\/em>\u8fd8\u662f<em>\u5305\u540d\u79f0\u3002<\/em><\/p>\n\n\n\n<h1 class=\"wp-block-heading\" id=\"4-subcommands\">4.\u5b50\u547d\u4ee4<\/h1>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"41-installing-a-package\">4.1 \u5b89\u88c5\u5305<\/h2>\n\n\n\n<p>\u8981\u5b89\u88c5\u5305\uff0c\u60a8\u53ea\u9700\u8981 GitHub \u7528\u6237\u540d\u548c\u5b58\u50a8\u5e93\u540d\u79f0\u3002\u7528\u6237\u540d\u548c\u5b58\u50a8\u5e93\u540d\u79f0\u7684\u7ec4\u5408\uff08\u4ee5\u659c\u7ebf\u5206\u9694\uff09\u63d0\u4f9b\u4e86\u5b58\u50a8\u5e93\u6240\u9700\u7684 URL\u3002\u4f8b\u5982\uff0c\u8981\u5b89\u88c5\u6258\u7ba1\u5728<a href=\"https:\/\/github.com\/haghish\/markdoc\">https:\/\/github.com\/haghish\/markdoc\u4e0a\u7684<\/a><a href=\"https:\/\/github.com\/haghish\/markdoc\" target=\"_blank\" rel=\"noreferrer noopener\">MarkDoc<\/a>\u5305\uff0c\u53ea\u9700\u8f93\u5165\uff1a<a href=\"https:\/\/github.com\/haghish\/markdoc\"><\/a><\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>github install haghish\/markdoc &#91;, stable version(\"\")]\n<\/code><\/pre>\n\n\n\n<p>\u8be5<code>github<\/code>\u8f6f\u4ef6\u5305\u5305\u542b\u4e00\u4e2a\u6570\u636e\u5e93\uff0c\u5176\u4e2d\u5305\u542b\u6258\u7ba1\u5728 GitHub \u4e0a\u7684 Stata \u8f6f\u4ef6\u5305\u7684\u5b8c\u6574\u5217\u8868\u3002\u56e0\u6b64\uff0c\u60a8\u4e5f\u53ef\u4ee5\u4ec5\u901a\u8fc7\u6307\u5b9a\u8f6f\u4ef6\u5305\u540d\u79f0\u6765\u5b89\u88c5\u8f6f\u4ef6\u5305\u3002\u8be5<strong><code>gitget<\/code><\/strong>\u547d\u4ee4\uff08\u662f\u7684\u5305\u88c5\u5668<code>github install<\/code>\uff09\u53ea\u9700\u8be2\u95ee\u8f6f\u4ef6\u5305\u540d\u79f0\u5373\u53ef\u4ece GitHub \u5b89\u88c5\u6216\u66f4\u65b0 Stata \u8f6f\u4ef6\u5305\uff1a<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>gitget packagename &#91;, stable version(\"\")]\n<\/code><\/pre>\n\n\n\n<p>\u4f8b\u5982\uff0c\u5982\u679c\u60a8\u5e0c\u671b\u5b89\u88c5<code>markdoc<\/code>\u5305\uff0c\u952e\u5165<code>gitget markdoc<\/code>\u548c\u952e\u5165<code>github install haghish\/markdoc<\/code>\u4e00\u6837\u597d\u7528\u3002\u5982\u679c\u60a8\u5e0c\u671b\u68c0\u67e5\u6258\u7ba1\u5728 GitHub \u4e0a\u7684 Stata \u5305\u5217\u8868\uff0c\u8bf7\u53c2\u9605<em><a href=\"https:\/\/github.com\/haghish\/github\/blob\/master\/gitget.dta\" target=\"_blank\" rel=\"noreferrer noopener\">gitget.dta<\/a><\/em>\u6570\u636e\u96c6\u3002<\/p>\n\n\n\n<figure class=\"wp-block-table is-style-stripes\"><table class=\"has-fixed-layout\"><thead><tr><th>\u9009\u9879<\/th><th>\u63cf\u8ff0<\/th><\/tr><\/thead><tbody><tr><td><code>stable<\/code><\/td><td>\u5b89\u88c5\u8f6f\u4ef6\u5305\u7684\u6700\u65b0\u7a33\u5b9a\u53d1\u884c\u7248\u672c<\/td><\/tr><tr><td><code>version(str)<\/code><\/td><td>\u5b89\u88c5\u6307\u5b9a\u7684\u53d1\u5e03\u7248\u672c<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"42-searching-for-a-stata-package\">4.2 \u641c\u7d22 Stata \u5305<\/h2>\n\n\n\n<p>\u60a8\u53ef\u4ee5\u4f7f\u7528\u4e00\u4e2a\u6216\u591a\u4e2a\u5173\u952e\u5b57\u5728 GitHub \u4e0a\u641c\u7d22 Stata \u5305\u3002\u8fd9\u7c7b\u4f3c\u4e8e Stata \u7684<code>search<\/code>\u6216<code>findit<\/code>\u547d\u4ee4\uff0c\u4f46\u4ec5\u7528\u4e8e\u641c\u7d22 GitHub \u5305\uff1a<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>github search weaver\n<\/code><\/pre>\n\n\n\n<p>\u6709\u6548\u5730\u641c\u7d22 GitHub API \u975e\u5e38\u91cd\u8981\u3002\u4e3a\u6b64\uff0c\u8be5\u8f6f\u4ef6\u5305\u5305\u542b\u4e00\u4e2a\u641c\u7d22 GUI\uff0c\u5176\u4e2d\u663e\u793a\u4e86\u53ef\u7528\u4e8e\u7f29\u5c0f\u641c\u7d22\u8303\u56f4\u6216\u6269\u5c55\u641c\u7d22\u8303\u56f4\u4ee5\u5305\u542b\u5176\u4ed6\u6765\u6e90\u7684\u8bed\u6cd5\u3002\u641c\u7d22\u547d\u4ee4\u8fd8\u4f1a\u5206\u6790\u547d\u4ee4\u4e0a\u6258\u7ba1\u7684\u8f6f\u4ef6\u5305\u7684\u53d1\u5e03\u65e5\u671f<code>net<\/code>\uff0c\u8fd9\u662f\u4e00\u4e2a\u975e\u5e38\u6709\u7528\u7684\u529f\u80fd\u3002\u8981\u542f\u52a8 GUI\uff0c\u8bf7\u952e\u5165\uff1a<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>db github\n<a href=\"https:\/\/github.com\/haghish\/github\/raw\/master\/images\/search.png\"><\/a><\/code><\/pre>\n\n\n\n<p>\u4f8b\u5982\uff0c\u5982\u679c\u60a8\u4f7f\u7528\u8be5<code>github search<\/code>\u547d\u4ee4\u641c\u7d22<code>markdoc<\/code>\u5305\uff0c\u60a8\u5c06\u5f97\u5230\u4ee5\u4e0b\u8f93\u51fa\uff1a<a href=\"https:\/\/github.com\/haghish\/github\/raw\/master\/images\/example.png\"><\/a><\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"43-managing-installed-packages\">4.3 \u7ba1\u7406\u5df2\u5b89\u88c5\u7684\u8f6f\u4ef6\u5305<\/h2>\n\n\n\n<p><code>github<\/code>\u6709\u4e00\u4e2a\u5185\u7f6e\u6570\u636e\u5e93\uff0c\u53ef\u4ee5\u8ddf\u8e2a\u8ba1\u7b97\u673a\u4e0a\u5b89\u88c5\u7684\u8f6f\u4ef6\u5305\uff0c\u5f53\u7136\uff0c\u8fd8\u4f1a\u544a\u8bc9\u60a8\u8ba1\u7b97\u673a\u4e0a\u5b89\u88c5\u7684\u8f6f\u4ef6\u5305\u7684\u7248\u672c\u3002\u7248\u672c\u53d6\u81ea\u5f00\u53d1\u4eba\u5458\u6307\u5b9a\u7684\u8f6f\u4ef6\u5305\u7684\u552f\u4e00\u53d1\u5e03\u6807\u7b7e\u3002\u60a8\u53ef\u4ee5\u67e5\u770b<code>list<\/code>\u5df2\u5b89\u88c5\u7684\u8f6f\u4ef6\u5305\u5e76\u83b7\u53d6\u6709\u5173\u5b83\u4eec\u7684\u6709\u7528\u4fe1\u606f\u3002<strong>\u6b64\u547d\u4ee4\u8fd8\u4f1a\u901a\u77e5\u60a8\u662f\u5426\u6709\u4efb\u4f55 GitHub \u8f6f\u4ef6\u5305\u7684\u53ef\u7528\u66f4\u65b0<\/strong>\u3002\u4f8b\u5982\uff0c\u5728\u4e0b\u9762\u7684\u8f93\u51fa\u4e2d\uff0c\u6211\u4eec\u77e5\u9053\u6211\u4eec\u7684\u4e24\u4e2a\u8f6f\u4ef6\u5305\u90fd\u6709\u53ef\u7528\u7684\u66f4\u65b0\u3002\u6211\u4eec\u8fd8\u53ef\u4ee5\u5355\u51fb\u94fe\u63a5<code>(update)<\/code>\u5c06\u8f6f\u4ef6\u5305\u66f4\u65b0\u5230\u6700\u65b0\u7248\u672c\u3002<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>. github list\n<a href=\"https:\/\/github.com\/haghish\/github\/raw\/master\/images\/list.png\"><\/a><\/code><\/pre>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"44-checking-a-stata-repository\">4.4 \u68c0\u67e5 Stata \u5b58\u50a8\u5e93<\/h2>\n\n\n\n<p>\u5e76\u975e\u6240\u6709\u8f6f\u4ef6\u5305\u90fd\u53ef\u5b89\u88c5\u3002Stata \u5b58\u50a8\u5e93\u5fc5\u987b\u5177\u6709<strong>toc<\/strong>\u548c<strong>pkg<\/strong>\u6587\u4ef6\u624d\u80fd\u5b89\u88c5\u3002\u60a8\u53ef\u4ee5\u4f7f\u7528<code>check<\/code>\u5b50\u547d\u4ee4\u68c0\u67e5\u8f6f\u4ef6\u5305\u662f\u5426\u53ef\u5b89\u88c5\u3002<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>github check haghish\/markdoc\n<\/code><\/pre>\n\n\n\n<blockquote class=\"wp-block-quote is-layout-flow wp-block-quote-is-layout-flow\">\n<p><img decoding=\"async\" src=\"https:\/\/github.com\/haghish\/markdoc\/raw\/master\/Resources\/images\/attention.png\" width=\"20px\" height=\"20px\">\u8fd9\u662f\u9700\u8981\u6ce8\u610f\u7684\u4e00\u4e2a\u76f8\u5f53\u91cd\u8981\u7684\u70b9\uff0c\u56e0\u4e3a<code>github search<\/code>\u7528\u4e8e\u5728 GitHub \u4e0a\u641c\u7d22 Stata \u5305\u7684\u547d\u4ee4\u5f80\u5f80\u4f1a\u5ffd\u7565\u4e0d\u53ef\u5b89\u88c5\u7684 Stata \u5b58\u50a8\u5e93\u3002\u6362\u53e5\u8bdd\u8bf4\uff0c\u5982\u679c\u60a8\u7684\u5b58\u50a8\u5e93\u4e0d\u5305\u542b\u8fd9\u4e9b\u6587\u4ef6\uff0c\u5b83\u5c06\u4e0d\u4f1a\u88ab\u89c6\u4e3a Stata \u5305\uff0c\u9664\u975e\u60a8<code>all<\/code>\u5728\u641c\u7d22\u4e2d\u6307\u5b9a\u9009\u9879\uff08\u5728\u641c\u7d22 GUI \u4e2d\u9009\u4e2d\u663e\u793a<strong>\u4e0d\u53ef\u5b89\u88c5\u7684 GitHub \u5b58\u50a8\u5e93<\/strong>\u9009\u9879\uff09\u3002\u4f46\u662f\uff0c\u8be5<code>github<\/code>\u5305\u8fd8\u5305\u542b\u4e00\u4e2a\u7528\u4e8e\u6784\u5efa\u8fd9\u4e9b\u6587\u4ef6\u7684 GUI\u3002\u4f7f\u7528\u968f\u9644\u7684 GUI&nbsp;<code>github<\/code>\uff0c\u60a8\u53ef\u4ee5\u8f7b\u677e\u5730\u4e3a\u60a8\u7684\u5b58\u50a8\u5e93\u6784\u5efa\u8fd9\u4e9b\u6587\u4ef6\uff08\u89c1\u4e0b\u6587\uff09\u3002<\/p>\n<\/blockquote>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"45-uninstalling-a-package\">4.5 \u5378\u8f7d\u8f6f\u4ef6\u5305<\/h2>\n\n\n\n<p>\u8981\u5b89\u88c5\u8f6f\u4ef6\u5305\uff0c\u8bf7\u4f7f\u7528<code>uninstall<\/code>\u5b50\u547d\u4ee4\uff0c\u540e\u8ddf\u8f6f\u4ef6\u5305\u540d\u79f0\u3002\u4f8b\u5982\uff1a<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>github uninstall markdoc\n<\/code><\/pre>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"46-package-versions\">4.6 \u8f6f\u4ef6\u5305\u7248\u672c<\/h2>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"461-installing-a-particular-version\">4.6.1 \u5b89\u88c5\u7279\u5b9a\u7248\u672c<\/h3>\n\n\n\n<p>GitHub \u5141\u8bb8\u5b58\u6863\u65e0\u9650\u6570\u91cf\u7684\u8f6f\u4ef6\u5305\u7248\u672c\u3002\u8be5<code>github<\/code>\u547d\u4ee4\u6709\u4e00\u4e2a\u6307\u5b9a\u8f6f\u4ef6\u5305\u7248\u672c\u7684\u9009\u9879\uff0c\u5141\u8bb8\u5b89\u88c5\u4ee5\u524d\u7684\u8f6f\u4ef6\u5305\u7248\u672c\u3002\u4f8b\u5982\uff0c\u8981\u5b89\u88c5\u65e7\u7248\u672c\u7684 MarkDoc \u8f6f\u4ef6\u5305\uff0c\u4f8b\u5982<code>3.8.0<\/code>\u3002\u60a8\u53ef\u4ee5\u8f93\u5165\uff1a<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>github install haghish\/markdoc , version(\"3.8.0\")\n<\/code><\/pre>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"462-listing-all-previous-releases\">4.6.2 \u5217\u51fa\u6240\u6709\u5148\u524d\u7248\u672c<\/h3>\n\n\n\n<p>\u4f46\u662f\u60a8\u5728\u54ea\u91cc\u53ef\u4ee5\u770b\u5230\u8f6f\u4ef6\u5305\u7248\u672c\uff1f GitHub \u6709\u4e00\u4e2a<strong><em><strong><em>release<\/em><\/strong>\u00a0<\/em><\/strong>\u9009\u9879\u5361\uff0c\u5176\u4e2d\u5217\u51fa\u4e86\u8be5\u8f6f\u4ef6\u7684\u6240\u6709\u5148\u524d\u7248\u672c\uff08<a href=\"https:\/\/github.com\/haghish\/markdoc\/releases\" target=\"_blank\" rel=\"noreferrer noopener\"><strong>\u4f8b\u5982\uff0c\u8bf7\u53c2\u9605 MarkDoc \u7684\u5148\u524d\u7248\u672c<\/strong><\/a>\uff09\u3002\u4f46\u597d\u6d88\u606f\u662f\uff0c\u5b83<code>github<\/code>\u6709\u4e00\u4e2a\u5b50\u547d\u4ee4\uff0c\u7528\u4e8e\u5728 Stata \u7ed3\u679c\u7a97\u53e3\u4e2d\u5217\u51fa\u6240\u6709\u5148\u524d\u7248\u672c\uff0c\u5e76\u5141\u8bb8\u60a8\u901a\u8fc7\u5355\u51fb\u9f20\u6807\u6216\u4ee5\u7f16\u7a0b\u65b9\u5f0f\u5b89\u88c5\u5176\u4e2d\u4efb\u4f55\u4e00\u4e2a\u7248\u672c\uff08<em>\u4ee5\u53ca\u8be5\u7279\u5b9a\u7248\u672c\u7684\u8f6f\u4ef6\u5305\u4f9d\u8d56\u9879\uff0c\u5982\u679c\u6307\u5b9a<\/em>\uff09\u3002\u4e3a\u6b64\uff0c\u8bf7\u952e\u5165\uff1a<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>github query username\/repository\n<\/code><\/pre>\n\n\n\n<p>\u4f8b\u5982\uff0c\u8981\u5217\u51fa<a href=\"https:\/\/github.com\/haghish\/markdoc\/releases\" target=\"_blank\" rel=\"noreferrer noopener\"><strong>MarkDoc<\/strong><\/a>\u7684\u5148\u524d\u7248\u672c\uff0c\u8bf7\u8f93\u5165\uff1a<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>. github query haghish\/markdoc\n\n ----------------------------------------\n  Version      Release Date      Install\n ----------------------------------------\n  3.8.5        2016-10-16        Install\n  3.8.4        2016-10-13        Install\n  3.8.3        2016-10-03        Install\n  3.8.2        2016-10-01        Install\n  3.8.1        2016-09-29        Install\n  3.8.0        2016-09-24        Install\n  3.7.9        2016-09-20        Install\n  3.7.8        2016-09-19        Install\n  3.7.7        2016-09-18        Install\n  3.7.6        2016-09-13        Install\n  3.7.5        2016-09-08        Install\n  3.7.4        2016-09-07        Install\n  3.7.3        2016-09-06        Install\n  3.7.2        2016-09-05        Install\n  3.7.0        2016-08-23        Install\n  3.6.9        2016-08-16        Install\n  3.6.7        2016-02-27        Install\n ----------------------------------------\n<\/code><\/pre>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"463-getting-the-version-of-an-installed-package\">4.6.3 \u83b7\u53d6\u5df2\u5b89\u88c5\u5305\u7684\u7248\u672c<\/h3>\n\n\n\n<p><a href=\"https:\/\/github.com\/haghish\/markdoc\" target=\"_blank\" rel=\"noreferrer noopener\"><strong>\u4f7f\u7528\u52a8\u6001\u6587\u6863\u8f6f\u4ef6\uff08\u4f8b\u5982MarkDoc \uff09<\/strong><\/a>\u7f16\u5199\u5206\u6790\u65f6\uff0c\u60a8\u5e94\u8be5\u62a5\u544a\u5206\u6790\u4e2d\u4f7f\u7528\u7684\u8f6f\u4ef6\u5305\u7684\u7248\u672c\u3002\u60a8\u53ef\u4ee5\u4f7f\u7528\u5b50\u547d\u4ee4\u4ee5\u7f16\u7a0b\u65b9\u5f0f\u83b7\u53d6\u5df2\u5b89\u88c5\u8f6f\u4ef6\u5305\u7684\u7248\u672c<code>version<\/code>\uff0c\u540e\u8ddf\uff1a<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>. github version markdoc\n3.8.0\n<\/code><\/pre>\n\n\n\n<p>\u6b64\u547d\u4ee4\u6ca1\u6709\u4efb\u4f55\u5176\u4ed6\u7528\u9014\uff0c\u56e0\u4e3a\u8be5<code>github list<\/code>\u547d\u4ee4\u5df2\u7ecf\u663e\u793a\u4e86\u5df2\u5b89\u88c5\u8f6f\u4ef6\u5305\u7684\u7248\u672c\uff0c\u5e76\u4e14\u8fd8\u68c0\u67e5\u4e86\u662f\u5426\u6709\u53ef\u7528\u7684\u66f4\u65b0\u7248\u672c\u2026\u2026<\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"47-package-dependencies\">4.7 \u8f6f\u4ef6\u5305\u4f9d\u8d56\u5173\u7cfb<\/h2>\n\n\n\n<p>\u67d0\u4e9b\u8f6f\u4ef6\u5305\u4f9d\u8d56\u4e8e\u5176\u4ed6\u8f6f\u4ef6\u5305\u3002\u8be5<code>github<\/code>\u547d\u4ee4\u5141\u8bb8\u60a8\u5b89\u88c5\u5e26\u6709\u6216\u4e0d\u5e26\u6709\u7279\u5b9a\u7248\u672c\u7684\u8f6f\u4ef6\u5305\u4f9d\u8d56\u9879\u3002\u64cd\u4f5c\u5982\u4e0b\uff1a<\/p>\n\n\n\n<ol class=\"wp-block-list\">\n<li>\u521b\u5efa\u4e00\u4e2a\u540d\u4e3a\u7684\u6587\u4ef6<code>dependency.do<\/code>\u5e76\u5c06\u5176\u5305\u542b\u5728\u5b58\u50a8\u5e93\u4e2d<\/li>\n\n\n\n<li>\u6b64\u6587\u4ef6\u4e0d\u6253\u7b97\u5b89\u88c5\u5728 PLUS \u76ee\u5f55\u4e2d\uff0c\u56e0\u6b64\uff0c\u5f53\u60a8\u6784\u5efa\u5305\u65f6\uff0c\u5b83\u4e0d\u5e94\u8be5\u5728 pkg \u6587\u4ef6\u4e2d\u63d0\u53ca\uff08\u89c1\u4e0b\u6587\uff09<\/li>\n\n\n\n<li>\u5728\u6b64 do \u6587\u4ef6\u4e2d\u5305\u62ec\u5b89\u88c5\u8f6f\u4ef6\u5305\u4f9d\u8d56\u9879\u7684\u4ee3\u7801\u3002\u5982\u679c\u8f6f\u4ef6\u5305\u6258\u7ba1\u5728 GitHub \u4e0a\uff0c\u8bf7\u4f7f\u7528<code>github<\/code>\u5b89\u88c5\u8f6f\u4ef6\u5305\u4f9d\u8d56\u9879\u7684\u547d\u4ee4\uff0c\u751a\u81f3\u6307\u5b9a\u6240\u9700\u7684\u7248\u672c\u3002<\/li>\n\n\n\n<li><code>github<\/code>\u547d\u4ee4\u5728\u5b89\u88c5\u5305\u540e\u8fdb\u884c\u67e5\u627e<code>dependency.do<\/code>\uff0c\u5982\u679c\u5728\u5b58\u50a8\u5e93\u4e2d\u627e\u5230\u5b83\uff0c\u5b83\u5c31\u4f1a\u6267\u884c\u5b83\u3002<\/li>\n<\/ol>\n\n\n\n<p>\u4f8b\u5982\uff0c<a href=\"https:\/\/raw.githubusercontent.com\/haghish\/MarkDoc\/master\/dependency.do\" target=\"_blank\" rel=\"noreferrer noopener\"><strong>MarkDoc \u5305\u4e2d\u6709\u4e00\u4e2a<code>dependency.do<\/code>\u6587\u4ef6<\/strong><\/a>\u53ef\u4ee5\u4f5c\u4e3a\u5982\u4f55\u521b\u5efa\u4f9d\u8d56\u6587\u4ef6\u7684\u793a\u4f8b\u3002\u5f53\u7136\uff0c\u8be5<code>dependenc.do<\/code>\u6587\u4ef6\u53ea\u80fd\u901a\u8fc7<strong><code>github install<\/code><\/strong>\u547d\u4ee4\u6267\u884c\u3002<\/p>\n\n\n\n<h1 class=\"wp-block-heading\" id=\"5-building-package-installation-files-automatically\">5. \u81ea\u52a8\u6784\u5efa\u5305\u5b89\u88c5\u6587\u4ef6<\/h1>\n\n\n\n<p>\u5047\u8bbe\u60a8\u5df2\u7ecf\u521b\u5efa\u4e86\u4e00\u4e2a ado \u6587\u4ef6\u548c Stata \u5e2e\u52a9\u6587\u4ef6\u3002\u5982\u4f55\u4f7f\u60a8\u7684\u5b58\u50a8\u5e93\u53ef\u5b89\u88c5\uff1f\u60a8\u9700\u8981\u624b\u52a8\u521b\u5efa<em>stata.toc<\/em>\u548c<em>packagename.pkg<\/em>\u6587\u4ef6\uff0c\u6307\u5b9a\u6240\u9700\u4fe1\u606f\u3001\u5e94\u5b89\u88c5\u7684\u6587\u4ef6\u7b49\u3002`github&nbsp;<code>package introduces the&nbsp;<\/code>make` GUI \u4f7f\u7528\u4e25\u683c\u7684\u5e03\u5c40\u4e3a\u60a8\u751f\u6210\u5305\u5b89\u88c5\u3002\u60a8\u53ea\u9700\u9009\u62e9\u8981\u5b89\u88c5\u7684\u6587\u4ef6\uff0c\u6307\u5b9a\u6240\u9700\u4fe1\u606f\uff0c\u5e76\u51c6\u5907\u597d<em>toc<\/em>\u548c<em>pkg<\/em>\u6587\u4ef6\u5373\u53ef\u3002\u7136\u540e\uff0c\u53ea\u8981\u5c06\u8fd9\u4e9b\u6587\u4ef6\u590d\u5236\u5230\u5b58\u50a8\u5e93\uff0c\u5b83\u5c31\u53ef\u4ee5\u5b89\u88c5\u4e86\uff01<\/p>\n\n\n\n<p>\u5c06\u5de5\u4f5c\u76ee\u5f55\u66f4\u6539\u4e3a\u5b58\u50a8\u5e93\u8def\u5f84\uff0c\u7136\u540e\u8fd0\u884c \u200b\u200bGUI\uff0c\u8f93\u5165\uff1a<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>db make\n<a href=\"https:\/\/github.com\/haghish\/github\/raw\/master\/images\/make.png\"><\/a><\/code><\/pre>\n\n\n\n<p>\u5199\u4e0b\u6240\u9700\u7684\u4fe1\u606f\u5e76\u9009\u62e9\u8981\u5b89\u88c5\u7684\u6587\u4ef6\u3002\u6309 OK\uff0c\u7136\u540e\u5c3d\u60c5\u4eab\u53d7\u5427\uff01<\/p>\n\n\n\n<h1 class=\"wp-block-heading\" id=\"6-list-of-stata-packages-recognized-by-gitget-command\"><code>gitget<\/code>6.\u547d\u4ee4\u8bc6\u522b\u7684 Stata \u8f6f\u4ef6\u5305\u5217\u8868<\/h1>\n\n\n\n<p>\u6570\u636e<code>gitget<\/code>\u96c6\u968f\u8f6f\u4ef6\u5305\u4e00\u8d77\u4e0b\u8f7d<code>github<\/code>\u3002\u6b64\u6570\u636e\u96c6\u6bcf\u6708\u66f4\u65b0\u4e00\u6b21\u3002<a href=\"https:\/\/github.com\/haghish\/github\/blob\/master\/gitget.md\" target=\"_blank\" rel=\"noreferrer noopener\">\u5355\u51fb\u6b64\u5904\u67e5\u770b<strong><code>gitget<\/code><\/strong>\u8f6f\u4ef6\u5305<\/a>\u7684\u5b8c\u6574\u5217\u8868\u3002<\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"author\">\u4f5c\u8005<\/h2>\n\n\n\n<p><strong>EF Haghish<\/strong><br>\u533b\u5b66\u751f\u7269\u7edf\u8ba1\u548c\u533b\u5b66\u4fe1\u606f\u5b66\u4e2d\u5fc3<br>\u5fb7\u56fd\u5f17\u83b1\u5821\u5927\u5b66<br><em><a href=\"https:\/\/twitter.com\/Haghish\" target=\"_blank\" rel=\"noreferrer noopener\">@Haghish<\/a><\/em><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u76ee\u5f55 1. \u7b80\u4ecb \u8fd1\u5e74\u6765\uff0cSta&#46;&#46;&#46;<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-1397","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/cabit.top\/index.php?rest_route=\/wp\/v2\/posts\/1397","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/cabit.top\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/cabit.top\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/cabit.top\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/cabit.top\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1397"}],"version-history":[{"count":14,"href":"https:\/\/cabit.top\/index.php?rest_route=\/wp\/v2\/posts\/1397\/revisions"}],"predecessor-version":[{"id":1411,"href":"https:\/\/cabit.top\/index.php?rest_route=\/wp\/v2\/posts\/1397\/revisions\/1411"}],"wp:attachment":[{"href":"https:\/\/cabit.top\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1397"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/cabit.top\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1397"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/cabit.top\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1397"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}