{"id":508,"date":"2024-11-05T00:30:23","date_gmt":"2024-11-04T16:30:23","guid":{"rendered":"http:\/\/www.wengdao.net\/?p=508"},"modified":"2024-11-05T00:32:43","modified_gmt":"2024-11-04T16:32:43","slug":"git-%e4%bd%bf%e7%94%a8%e5%b0%8f%e6%8a%80%e5%b7%a7","status":"publish","type":"post","link":"https:\/\/jiandao.zliby.com\/?p=508","title":{"rendered":"Git \u5c0f\u6280\u5de7"},"content":{"rendered":"<h3>\u67e5\u770b\u6307\u5b9a\u7b5b\u9009\u6761\u4ef6\u7684\u63d0\u4ea4\u6587\u4ef6<\/h3>\n<p>git \u7b5b\u9009\u63d0\u4ea4<\/p>\n<pre><code class=\"prettyprint\" >git log --no-merges --author=&quot;xxx&quot; --name-only --pretty=format:&quot;&quot; --since=&quot;2019-09-25&quot;  | sort -u<\/code><\/pre>\n<p>\u67e5\u627e\u540d\u79f0\u4e3a xxx \u8d77\u59cb\u65e5\u671f\u4e3a 2019-09-25 \u7684git \u63d0\u4ea4\u6587\u4ef6\uff0c\u53bb\u91cd\u3002<\/p>\n<h3>\u81ea\u5b9a\u4e49 git \u5c0f\u811a\u672c<\/h3>\n<p>Windows \u4e0b Git\u5b89\u88c5\u597d\u540e\u9ed8\u8ba4\u6709\u4e2acmd\u76ee\u5f55\uff0c\u8fd9\u4e2a\u8def\u5f84\u52a0\u5230Windows\u7684path\u73af\u5883\u53d8\u91cf\u4e0b\uff0c\u6b64\u76ee\u5f55\u4e0b\u7684bash \u811a\u672c\u53ef\u7528\u76f4\u63a5\u5728git bash \u7a97\u53e3\u76f4\u63a5\u88ab\u8c03\u7528\u6267\u884c<\/p>\n<p>GIT CMD\u76ee\u5f55\u4e0b\u521b\u5efa\u7b80\u6613\u811a\u672c xxx.sh<\/p>\n<pre><code class=\"prettyprint\" >#!\/bin\/sh\ngit add .\ngit commit -am &quot;$1&quot;\ngit push origin master\n<\/code><\/pre>\n<p>git bash \u7a97\u53e3\u76f4\u63a5\u8c03\u7528 <\/p>\n<p><code class=\"prettyprint\" >xxx.sh fix<\/code><\/p>\n<p>\u53ef\u4ee5\u76f4\u63a5\u63d0\u4ea4\uff0c\u7701\u53bb\u4e09\u4e2a\u6b65\u9aa4\uff0c\u540c\u65f6 \u8fd8\u53ef\u4ee5\u5728\u6b64\u57fa\u7840\u4e0a\u6dfb\u52a0\u522b\u540d,\u66f4\u8fdb\u4e00\u6b65\u4f18\u5316<\/p>\n<p>\u6dfb\u52a0\u522b\u540d<\/p>\n<p><code class=\"prettyprint\" >alias xxx=&#039;bash xxx.sh&#039;<\/code><\/p>\n<p>\u8c03\u7528<br \/>\n<code class=\"prettyprint\" >xxx fix&#039;<\/code><br \/>\n\u8fd9\u5c31\u76f8\u5f53\u4e8e\u7cbe\u7b80git \u63d0\u4ea4\u4e09\u6b65\u5230\u4e00\u4e2a\u522b\u540d\u547d\u4ee4\u91cc\u3002<\/p>\n<p>\u67e5\u770b\u914d\u7f6e<br \/>\n<code class=\"prettyprint\" >git config --list <\/code><\/p>\n<p>\u67e5\u770b\u522b\u540d<br \/>\n<code class=\"prettyprint\" >git config --list | grep alias<\/code><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u67e5\u770b\u6307\u5b9a\u7b5b\u9009\u6761\u4ef6\u7684\u63d0\u4ea4\u6587\u4ef6 git \u7b5b\u9009\u63d0\u4ea4 git log &#8211;no-merges &#8211;author=&#038;qu [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[3],"tags":[],"_links":{"self":[{"href":"https:\/\/jiandao.zliby.com\/index.php?rest_route=\/wp\/v2\/posts\/508"}],"collection":[{"href":"https:\/\/jiandao.zliby.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/jiandao.zliby.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/jiandao.zliby.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/jiandao.zliby.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=508"}],"version-history":[{"count":3,"href":"https:\/\/jiandao.zliby.com\/index.php?rest_route=\/wp\/v2\/posts\/508\/revisions"}],"predecessor-version":[{"id":511,"href":"https:\/\/jiandao.zliby.com\/index.php?rest_route=\/wp\/v2\/posts\/508\/revisions\/511"}],"wp:attachment":[{"href":"https:\/\/jiandao.zliby.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=508"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/jiandao.zliby.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=508"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/jiandao.zliby.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=508"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}