{"id":209871,"date":"2020-11-29T13:30:43","date_gmt":"2020-11-29T05:30:43","guid":{"rendered":"http:\/\/4563.org\/?p=209871"},"modified":"2020-11-29T13:30:43","modified_gmt":"2020-11-29T05:30:43","slug":"git-%e6%9c%89%e6%b2%a1%e6%9c%89%e5%8a%9e%e6%b3%95-push-%e9%83%a8%e5%88%86%e6%96%87%e4%bb%b6%e5%88%b0%e8%bf%9c%e7%a8%8b%e4%bb%93%e5%ba%93","status":"publish","type":"post","link":"http:\/\/4563.org\/?p=209871","title":{"rendered":"git \u6709\u6ca1\u6709\u529e\u6cd5 push \u90e8\u5206\u6587\u4ef6\u5230\u8fdc\u7a0b\u4ed3\u5e93"},"content":{"rendered":"<div>\n<div>\n<div>\n<h1>                  git \u6709\u6ca1\u6709\u529e\u6cd5 push \u90e8\u5206\u6587\u4ef6\u5230\u8fdc\u7a0b\u4ed3\u5e93               <\/h1>\n<p> <\/p>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : QBugHunter <\/span>  <span><i><\/i> 2<\/span> <\/div>\n<div> <\/div>\n<\/p><\/div>\n<\/p><\/div>\n<\/p><\/div>\n<div isfirst=\"1\"> <\/p>\n<p>\u5047\u8bbe\u672c\u5730\u4ece\u5e93\u662f\u4ece\u8fdc\u7a0b\u4ed3\u5e93\u91cc\u62c9\u8fc7\u6765\u7684\uff0c \u7136\u540e\u6211\u4fee\u6539\u4e86\u5176\u4e2d\u7684 10 \u4e2a\u6587\u4ef6\uff0c\u6587\u4ef6\u540d\u5206\u522b\u662f A0-A4\uff0cB0-B4 \u8fd9 10 \u4e2a\u6587\u4ef6\u7684\u6539\u52a8\u6211\u5168\u90e8<\/p>\n<pre><code>git add A*.java git add B*.java <\/code><\/pre>\n<p>\u7136\u540e\u8fd9\u4e9b\u6539\u52a8\u6211\u8fd8\u6ca1\u6709 commit,\u8fd9\u4e2a\u65f6\u5019\u6211\u5e0c\u671b\u53ea\u628a\u6587\u4ef6 B0-B4 \u63a8\u9001\u5230\u8fdc\u7a0b\u4ed3\u5e93\u91cc\uff0c\u8be5\u600e\u4e48\u64cd\u4f5c\uff1f<\/p>\n<\/p><\/div>\n<div> <b>\u5927\u4f6c\u6709\u8a71\u8aaa<\/b> (<span>11<\/span>)        <\/div>\n<div> <\/div>\n<\/p><\/div>\n<\/p><\/div>\n<ul>\n<li data-pid=\"4360524\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : wolfie <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u64a4\u56de \u5206\u6bb5\u63d0\u4ea4\u3002                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"4360525\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u4e3b<\/span> <span>\u8cc7\u6df1\u5927\u4f6c : QBugHunter <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             @wolfie <br \/>\u6ca1\u522b\u7684\u529e\u6cd5\u4e86\u561b\u3002\u3002\u3002\u56e0\u6539\u52a8\u6bd4\u8f83\u9891\u7e41\uff0c\u8fd9\u51e0\u4e2a\u6587\u4ef6\u6211 add \u4e86\u597d\u591a\u6b21\u4e86                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"4360526\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : Jirajine <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u90a3\u5c31\u53ea\u628a B0-B4 \u6dfb\u52a0\u5230\u6682\u5b58\u533a\uff0c\u7136\u540e commit\uff0c\u7136\u540e push \u3002                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"4360527\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : Wincer <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             Git restore \u3002                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"4360528\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : ipwx <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u6700\u7b28\uff08\u4f46\u4e00\u5b9a\u6ca1\u95ee\u9898\u7684\u505a\u6cd5\uff09\uff1a<\/p>\n<p>\u628a\u6587\u4ef6\u90fd\u62f7\u8d1d\u8d70\u4e00\u4efd\uff1b<br \/>git reset &#8211;hard<br \/>\u7136\u540e\u628a B0~B4 \u52a0\u8fdb\u53bb<\/p>\n<p>\u7136\u540e git add . ; git commit !<\/p>\n<p>\u6700\u540e\u628a\u6587\u4ef6\u62f7\u56de\u6765                                                            <\/p><\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"4360529\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : wolfie <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             @QBugHunter #2 <br \/>\u4e4b\u524d\u6ca1\u770b\u5230\u672a commit\uff0cgit reset HEAD A*.java\uff0c\u5148\u4e0d\u63d0\u8fd9\u51e0\u4e2a\u5c31\u884c\u3002                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"4360530\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : passerbytiny <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u6682\u5b58\u533a\u53ea\u80fd\u4e00\u6b21\u6027\u63d0\u4ea4\uff0c\u5b83\u53ea\u662f\u4e2a\u4e34\u65f6\u7a7a\u95f4\uff0c\u5e72\u4e0d\u4e86\u590d\u6742\u7684\u4e8b\u3002<\/p>\n<p>\u5982\u679c\u4e0d\u6d89\u53ca\u6587\u4ef6\u6539\u540d\uff08\u72b6\u6001\u662f R \uff09\uff0c\u90a3\u4e48\u628a\u4f60\u63d0\u4ea4\u7684\u6587\u4ef6\u53d6\u6d88\u6682\u5b58\uff0c\u8ba9\u6682\u5b58\u533a\u53ea\u7559\u4e0b\u60f3\u63d0\u4ea4\u7684\u4e1c\u897f\uff0c\u7136\u540e\u63d0\u4ea4\u5c31\u53ef\u4ee5\u4e86\u3002<\/p>\n<p>\u771f\u5f97\u5efa\u8bae git \u8981\u5c3d\u65e9\u505a\u63d0\u4ea4\uff0c\u56e0\u4e3a\u4fee\u6539\u63d0\u4ea4\uff0c\u8981\u6bd4\u628a\u4e00\u5927\u5806\u6587\u4ef6\u5206\u591a\u6b21\u63d0\u4ea4\uff0c\u7b80\u5355\u3002                                                            <\/p><\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"4360531\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : shm7 <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             A \u7c7b\u8f6c\u6362\u6210 not staged \u72b6\u6001 \u67e5\u4e00\u4e0b reset<br \/>B \u7c7b add \u4e86 \u76f4\u63a5 commit<br \/>\u6216\u8005\u4f60\u7528 ide                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"4360532\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : shm7 <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u5efa\u8bae\u4f60\u4e86\u89e3\u4e0b git \u5404\u4e2a\u72b6\u6001 edit staged commited pushed \u3002\u8fd8\u6709\u4e00\u4e2a stashed \u4e0d\u5e38\u7528\u3002\u4f60\u61c2\u4e86\u5c31\u77e5\u9053\u627e\u6307\u4ee4\u4e86                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"4360533\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : shm7 <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             @passerbytiny \u4e00\u5927\u5806\u6587\u4ef6\u5206\u6b21\u63d0\u4ea4\u5bf9\u4ee3\u7801 review \u5f88\u91cd\u8981                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"4360534\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : passerbytiny <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             @shm7 #10 \u7b2c\u4e00\uff0c\u63d0\u4ea4\u5728 push \u524d\u53ef\u4ee5\u8f7b\u6613\u4fee\u6539\u3002\u7b2c\u4e8c\uff0creview \u7684\u65f6\u5019\u901a\u5e38\u662f\u6c47\u603b PR \u7684\u6587\u4ef6\u6539\u52a8\uff0c\u800c\u4e0d\u662f\u9010\u4e2a\u63d0\u4ea4\u770b\u6539\u52a8\u3002\u4f60\u8fd9\u8fd8\u662f svn \u7684\u601d\u8def\uff0c\u4e0d\u662f git \u7684                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li>\n","protected":false},"excerpt":{"rendered":"<p>git \u6709\u6ca1\u6709\u529e\u6cd5 push \u90e8\u5206&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\/209871"}],"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=209871"}],"version-history":[{"count":0,"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/posts\/209871\/revisions"}],"wp:attachment":[{"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=209871"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=209871"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=209871"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}