{"id":167072,"date":"2020-10-07T10:24:26","date_gmt":"2020-10-07T02:24:26","guid":{"rendered":"http:\/\/4563.org\/?p=167072"},"modified":"2020-10-07T10:24:26","modified_gmt":"2020-10-07T02:24:26","slug":"%e4%b8%80%e4%b8%aa%e5%85%b3%e4%ba%8e-shell-%e8%84%9a%e6%9c%ac%e7%9a%84%e9%97%ae%e9%a2%98%ef%bc%8c%e6%b1%82%e5%a4%a7%e7%a5%9e%e8%a7%a3%e7%ad%94","status":"publish","type":"post","link":"http:\/\/4563.org\/?p=167072","title":{"rendered":"\u4e00\u4e2a\u5173\u4e8e shell \u811a\u672c\u7684\u95ee\u9898\uff0c\u6c42\u5927\u795e\u89e3\u7b54"},"content":{"rendered":"<div>\n<div>\n<div>\n<h1>                  \u4e00\u4e2a\u5173\u4e8e shell \u811a\u672c\u7684\u95ee\u9898\uff0c\u6c42\u5927\u795e\u89e3\u7b54               <\/h1>\n<p> <\/p>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : buaawcy <\/span>  <span><i><\/i> 3<\/span> <\/div>\n<div> <\/div>\n<\/p><\/div>\n<\/p><\/div>\n<\/p><\/div>\n<div isfirst=\"1\"> <\/p>\n<p>\u5e73\u65f6\u4f1a\u6709\u8fd9\u6837\u7684\u9700\u6c42\uff0c\u5c06\u5728\u5206\u652f a \u4e0a\u5f00\u53d1\u7684\u5185\u5bb9\u63a8\u5230\u6d4b\u8bd5\u5206\u652f b\uff0c\u7136\u540e\u90e8\u7f72\u5230\u5f00\u53d1\u673a\u4e0a\u6d4b\u8bd5\u3002\u4e8e\u662f\u6211\u5199\u4e86\u4e00\u4e2a shell \u5feb\u6377\u952e\uff0c\u4f46\u662f\u5c06\u5206\u652f a \u5f00\u53d1\u7684\u5185\u5bb9 merge \u5230\u5206\u652f b \u540e\uff0c\u6ca1\u6cd5\u81ea\u52a8\u5207\u56de\u5206\u652f a \u4e86\u3002<\/p>\n<p>\u5feb\u6377\u952e\u547d\u4ee4\u5982\u4e0b git_merge_test() { curBranch=$(echo $(git symbolic-ref &#8211;short -q HEAD)) git co wcy_test1 git merge $curBranch git_push &#8220;merge&#8221; git co $curBranch }<\/p>\n<p>\u6700\u540e\u4e00\u6b65 git co $curBranch \u4e2d\u4e3a\u5565\u6ca1\u6709\u5207\u5230\u5206\u652f a \u5462\uff1f<\/p>\n<p>\u8dea\u6c42\u5927\u795e\u89e3\u7b54~~~<\/p>\n<\/p><\/div>\n<div> <b>\u5927\u4f6c\u6709\u8a71\u8aaa<\/b> (<span>1<\/span>)        <\/div>\n<div> <\/div>\n<\/p><\/div>\n<\/p><\/div>\n<ul>\n<li data-pid=\"3690034\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u4e3b<\/span> <span>\u8cc7\u6df1\u5927\u4f6c : buaawcy <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             git_push() {<br \/> curBranch=`git symbolic-ref &#8211;short -q HEAD`<br \/> git add .;<br \/> git cm -m [email&#160;protected];<br \/> git pr &#8220;$curBranch&#8221;;<br \/>}<\/p>\n<p>git_merge_test() {<br \/> curBranch=$(echo $(git symbolic-ref &#8211;short -q HEAD))<br \/> git co wcy_test1<br \/> git merge $curBranch<br \/> git_push &#8220;merge&#8221;<br \/> git co $curBranch<br \/>}<\/p>\n<p>\u8d34\u4e00\u4e0b\u5b8c\u6574\u7684\u547d\u4ee4                                                            <\/p><\/div>\n<\/p><\/div>\n<\/li>\n<li>\n","protected":false},"excerpt":{"rendered":"<p>\u4e00\u4e2a\u5173\u4e8e shell \u811a\u672c\u7684\u95ee\u9898\uff0c&hellip;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[],"tags":[],"_links":{"self":[{"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/posts\/167072"}],"collection":[{"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=167072"}],"version-history":[{"count":0,"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/posts\/167072\/revisions"}],"wp:attachment":[{"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=167072"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=167072"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=167072"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}