{"id":323,"date":"2021-08-02T09:22:19","date_gmt":"2021-08-02T01:22:19","guid":{"rendered":"https:\/\/www.buyao007.icu\/?p=323"},"modified":"2021-08-02T09:23:08","modified_gmt":"2021-08-02T01:23:08","slug":"1-%e4%bb%a3%e7%a0%81%e8%87%aa%e5%8a%a8%e4%b8%8a%e7%ba%bf-git","status":"publish","type":"post","link":"https:\/\/www.buyao007.icu\/?p=323","title":{"rendered":"1.\u4ee3\u7801\u81ea\u52a8\u4e0a\u7ebf&#8212;git"},"content":{"rendered":"\n<p style=\"font-size:18px\">\u5b59\u5bcc\u9633\uff0c \u6c5f\u6e56\u4eba\u79f0\u6ca1\u4eba\u79f0\u3002\u591a\u5e74\u4e92\u8054\u7f51\u8fd0\u7ef4\u5de5\u4f5c\u7ecf\u9a8c\uff0c\u66fe\u8d1f\u8d23\u8fc7\u5b59\u5e03\u65af\u5927\u89c4\u6a21\u96c6\u7fa4\u67b6\u6784\u81ea\u52a8\u5316\u8fd0\u7ef4\u7ba1\u7406\u5de5\u4f5c\u3002\u64c5\u957fWeb\u96c6\u7fa4\u67b6\u6784\u4e0e\u81ea\u52a8\u5316\u8fd0\u7ef4\uff0c\u66fe\u8d1f\u8d23\u56fd\u5185\u67d0\u5927\u578b\u535a\u5ba2\u7f51\u7ad9\u8fd0\u7ef4\u5de5\u4f5c\u3002<\/p>\n\n\n\n<h2 class=\"has-large-font-size wp-block-heading\">\u4e00\u3001git\u7684\u57fa\u672c\u4f7f\u7528<\/h2>\n\n\n\n<figure class=\"wp-block-table\"><table><tbody><tr><td>\u540d\u5b57<\/td><td>\u542b\u4e49<\/td><\/tr><tr><td>git init<\/td><td>\u521d\u59cb\u5316\u672c\u5730\u4ed3\u5e93\u76ee\u5f55<\/td><\/tr><tr><td>git config --global<\/td><td>\u90ae\u7bb1,\u7528\u6237\u540d,\u989c\u8272<\/td><\/tr><tr><td>git add<\/td><td>\u63d0\u4ea4\u6570\u636e\u5230\u7f13\u51b2\u533a(\u6682\u5b58\u533a)<\/td><\/tr><tr><td>git add<\/td><td>. (\u6240\u6709\u6587\u4ef6) \u6216 git add \u6587\u4ef6<\/td><\/tr><tr><td>git commit<\/td><td>\u628a\u6682\u5b58\u533a\u7684\u6570\u636e\u63d0\u4ea4\u5230\u672c\u5730\u4ed3\u5e93 git commit -m \"\u6807\u8bb0\/\u8bf4\u660e\"<\/td><\/tr><tr><td>git status<\/td><td>\u663e\u793a\u5de5\u4f5c\u7a7a\u95f4\u7684\u72b6\u6001<\/td><\/tr><tr><td>git reset<\/td><td>\u56de\u6eda<\/td><\/tr><tr><td>git reset --soft cid(\u7248\u672c\u53f7)<\/td><td>\u628a\u6307\u5b9a\u7684\u7248\u672c\u6570\u636e\u5185\u5bb9\u4e0b\u8f7d\u5230\u6682\u5b58\u533a<\/td><\/tr><tr><td>git reset HEAD<\/td><td>\u6682\u5b58\u533a---&gt;\u5de5\u4f5c\u7a7a\u95f4(\u88ab\u4fee\u6539\u7684\u72b6\u6001)<\/td><\/tr><tr><td>git checkout<\/td><td>\u6587\u4ef6\u4e0b\u8f7d\u5230\u5de5\u4f5c\u7a7a\u95f4\u5e76\u53ef\u4ee5\u4f7f\u7528 git checkout . \u6216 git checkout \u6587\u4ef6<\/td><\/tr><tr><td>git reset --mix \u7248\u672c\u53f7<\/td><td>\u56de\u9000\u5230\u5de5\u4f5c\u533a\uff0c\u989c\u8272\u53d8\u7ea2<\/td><\/tr><tr><td>git reset --hard<\/td><td>\u7248\u672c\u53f7 \u628a\u672c\u5730\u4ed3\u5e93\u6307\u5b9a\u7248\u672c\u4fe1\u606f\u6570\u636e\u4e0b\u8f7d\u5230\u5de5\u4f5c\u76ee\u5f55\u4e2d<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<pre class=\"wp-block-code has-medium-font-size\"><code><strong>1.\u5b89\u88c5git<\/strong>\n&#91;root@git ~]# yum -y install git\n&#91;root@git ~]# git --version \ngit version 1.8.3.1\n<strong>2.\u521b\u5efagit\u5de5\u4f5c\u76ee\u5f55<\/strong>\n&#91;root@git ~]# mkdir  \/opt\/tast\n&#91;root@git ~]#cd \/opt\/tast\n<strong>3.init\u521d\u59cb\u5316\u5de5\u4f5c\u76ee\u5f55<\/strong>\n&#91;root@git \/opt\/tast]# git init \n  itialized empty Git repository in \/opt\/tast\/.git\/\n&#91;root@git \/opt\/tast]# ls\n&#91;root@git \/opt\/tast]# ls -a\n.  ..  .git\n<strong>4.\u5f00\u59cb\u5f00\u53d1\u4ee3\u7801<\/strong>\n&#91;root@git \/opt\/tast]# cat index.html\n \u8fd9\u662f\u6211\u7684\u7b2c\u4e00\u4e2aapp: \u5b59\u67d0\u67d0\u7684\u8fd0\u7ef4\u4e4b\u8def:v1\n<strong>5.add \u548ccommit\u63d0\u4ea4\u4ee3\u7801##\u6b64\u5904\u62a5\u9519\uff0c\u8981\u6c42\u63d0\u4f9b\u7528\u6237\u540d\u548c\u90ae\u7bb1\uff0c\u4e3a\u4e86\u533a\u5206\u4ee3\u7801\u662f\u8c01\u5199\u7684<\/strong>\n&#91;root@git \/opt\/tast]# git add index.htnl\n&#91;root@git \/opt\/tast]# git commit -m '\u8fd9\u662f\u7b2c\u4e00\u4e2aapp:66%'\n*** Please tell me who you are.\nRun\n  git config --global user.email \"you@example.com\"\n  git config --global user.name \"Your Name\"\nto set your account's default identity.\nOmit --global to set the identity only in this repository.\nfatal: unable to auto-detect email address (got 'root@git.(none)')\n<strong>6.\u6309\u8981\u6c42\u63d0\u4ea4\u90ae\u7bb1\u3001\u7528\u6237\u540d\u4fe1\u606f\uff0c\u5e76\u4fee\u6539git\u63d0\u793a\u989c\u8272<\/strong>\n&#91;root@git \/opt\/tast]# git config --global user.email \"2195802440@qq.com\"\n&#91;root@git \/opt\/tast]# git config --global user.name  \"\u5b59\u5bcc\u9633\"\n&#91;root@git \/opt\/tast]# git config --global color.ui true\n\u4e0a\u56fe\u53ef\u4ee5\u770b\u5230\u989c\u8272\u53d1\u751f\u53d8\u5316\n#\u7ea2\u8272\u4ee3\u8868\u5de5\u4f5c\u533a\uff0c\u6307\u7684\u662f\u4ee3\u7801\u53d1\u751f\u53d8\u5316\n#\u7eff\u8272\u4ee3\u7801\u6682\u5b58\u533a\uff0c\u7528\u6237\u6267\u884cgit add\u540e\u8fdb\u5165\u6682\u5b58\u533a\n#\u672c\u5730\u7248\u672c\u4ee3\u7801\u4ed3\u5e93\uff0cstatus\u67e5\u770b\u4e0d\u5230\u989c\u8272\uff0c\u7528\u6237\u6267\u884c\u4e86commit -m\n<strong>7.log\u67e5\u770b\u63d0\u4ea4\u7684\u65e5\u5fd7\u4fe1\u606f<\/strong>\n&#91;root@git \/opt\/tast]# git log \ncommit 23f02c336312ca2c884f9f45f2d88cedf25a69e6\nAuthor: \u5b59\u5bcc\u9633 &lt;2195802440@qq.com&gt;\nDate:   Wed Jul 28 17:37:57 2021 +0800\n\n    \u8fd9\u662f\u7b2c\u4e00\u4e2aapp:66%\n<strong>8.\u7ee7\u7eed\u5f00\u53d1\u4ee3\u7801<\/strong>\n&#91;root@git \/opt\/tast]# vim index.html \n\u8fd9\u662f\u6211\u7684\u7b2c\u4e00\u4e2aapp: \u5b59\u67d0\u67d0\u7684\u8fd0\u7ef4\u4e4b\u8def:v1\n\u8fd9\u662f\u6211\u7684\u7b2c\u4e00\u4e2aapp: \u5b59\u67d0\u67d0\u7684\u8fd0\u7ef4\u4e4b\u8def:v1.1\n\u8fd9\u662f\u6211\u7684\u7b2c\u4e00\u4e2aapp: \u5b59\u67d0\u67d0\u7684\u8fd0\u7ef4\u4e4b\u8def:v2 \n<strong>9.\u7ee7\u7eed\u63d0\u4ea4\u4ee3\u7801<\/strong>\n &#91;root@git \/opt\/tast]# git add index.html\n&#91;root@git \/opt\/tast]# git commit -m '\u5f00\u53d1\u5b8c\u6210100%'\n&#91;master 8dccd73] \u5f00\u53d1\u5b8c\u6210100%\n 1 file changed, 1 insertion(+)\n<strong>10.\u67e5\u770b\u5f53\u524d\u7248\u672c\u4fe1\u606f<\/strong>\n&#91;root@git \/opt\/tast]# git log\ncommit 8dccd73606f103f73c10b2eb4645c8c1b6785fae\nAuthor: \u5b59\u5bcc\u9633 &lt;2195802440@qq.com&gt;\nDate:   Wed Jul 28 17:45:30 2021 +0800\n    \u5f00\u53d1\u5b8c\u6210100%\ncommit 23f02c336312ca2c884f9f45f2d88cedf25a69e6\nAuthor: \u5b59\u5bcc\u9633 &lt;2195802440@qq.com&gt;\nDate:   Wed Jul 28 17:37:57 2021 +0800\n    \u8fd9\u662f\u7b2c\u4e00\u4e2aapp:66%\n<strong>11.reset\u4ee3\u7801\u56de\u9000#--hard\u540e\u9762\u8ddflog\u91cc\u7684\u524d\u51e0\u4f4d\u5373\u53ef<\/strong>\n&#91;root@git \/opt\/tast]# git reset --hard 23f02c3363\nHEAD is now at 23f02c3 \u8fd9\u662f\u7b2c\u4e00\u4e2aapp:66%\n<strong>12.\u67e5\u770b\u4e00\u4e0b\u4ee3\u7801<\/strong>\n&#91;root@git \/opt\/tast]# cat index.html \n\u8fd9\u662f\u6211\u7684\u7b2c\u4e00\u4e2aapp: \u5b59\u67d0\u67d0\u7684\u8fd0\u7ef4\u4e4b\u8def:v1\n<strong>13.\u67e5\u770b\u5168\u90e8\u7684\u65e5\u5fd7<\/strong>\n##git log \u53d1\u73b0\u4ee3\u7801\u7248\u672c\u90fd\u6ca1\u4e86\n&#91;root@git \/opt\/tast]# git log\ncommit 23f02c336312ca2c884f9f45f2d88cedf25a69e6\nAuthor: \u5b59\u5bcc\u9633 &lt;2195802440@qq.com&gt;\nDate:   Wed Jul 28 17:37:57 2021 +0800\n\u8fd9\u662f\u7b2c\u4e00\u4e2aapp:66%\n##\u53ef\u4ee5\u901a\u8fc7reflog\u67e5\u770b\u5b8c\u6574\u65e5\u5fd7\n&#91;root@git \/opt\/tast]# git reflog \n23f02c3 HEAD@{0}: reset: moving to 23f02c3363\n8dccd73 HEAD@{1}: commit: \u5f00\u53d1\u5b8c\u6210100%\n344e148 HEAD@{2}: commit: \u5f00\u53d1\u5b8c\u621070%\n23f02c3 HEAD@{3}: commit (initial): \u8fd9\u662f\u7b2c\u4e00\u4e2aapp:66%\n<strong>14.\u518d\u6b21\u56de\u5230\u5f00\u53d1100%<\/strong>\n&#91;root@git \/opt\/tast]# git reset --hard 8dccd73\nHEAD is now at 8dccd73 \u5f00\u53d1\u5b8c\u6210100%\n&#91;root@git \/opt\/tast]# cat index.html \n\u8fd9\u662f\u6211\u7684\u7b2c\u4e00\u4e2aapp: \u5b59\u67d0\u67d0\u7684\u8fd0\u7ef4\u4e4b\u8def:v1\n\u8fd9\u662f\u6211\u7684\u7b2c\u4e00\u4e2aapp: \u5b59\u67d0\u67d0\u7684\u8fd0\u7ef4\u4e4b\u8def:v1.1\n\u8fd9\u662f\u6211\u7684\u7b2c\u4e00\u4e2aapp: \u5b59\u67d0\u67d0\u7684\u8fd0\u7ef4\u4e4b\u8def:v2<\/code><\/pre>\n\n\n\n<h2 class=\"has-large-font-size wp-block-heading\">\u4e8c\u3001git\u5206\u652f<\/h2>\n\n\n\n<figure class=\"wp-block-table\"><table><tbody><tr><td>git \u5206\u652f\u76f8\u5173\u547d\u4ee4<\/td><td>&nbsp;<\/td><\/tr><tr><td>git branch<\/td><td>\u67e5\u770b\u5206\u652f<\/td><\/tr><tr><td>git branch name<\/td><td>\u521b\u5efa\u5206\u652f<\/td><\/tr><tr><td>git branch -d name<\/td><td>\u5220\u9664\u5206\u652f<\/td><\/tr><tr><td>git checkout<\/td><td>\u5206\u652f\u540d\u5b57 \u5207\u6362\u5206\u652f<\/td><\/tr><tr><td>git merge<\/td><td>\u5206\u652f\u540d\u5b57 \u5408\u5e76(\u5438\u6536)\u5206\u652f(\u628a\u6307\u5b9a\u7684\u5206\u652f\u5408\u5e76\u5230\u5f53\u524d\u5206\u652f\u4e2d)<\/td><\/tr><tr><td>git checkout -b name<\/td><td>\u521b\u5efa\u5206\u652f\u5e76\u5207\u6362\u5230\u8fd9\u4e2a\u5206\u652f<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<pre class=\"wp-block-code has-medium-font-size\"><code><strong>1\uff0e\u521b\u5efa\u548c\u67e5\u770b\u5206\u652fbranch<\/strong>\n&#91;root@git \/opt\/tast]# git branch shopping\n&#91;root@git \/opt\/tast]# git branch \n* master\n  shopping\n<strong>2.\u5207\u6362\u5206\u652fcheckout<\/strong>\n&#91;root@git \/opt\/tast]# git checkout shopping \nSwitched to branch 'shopping'\n&#91;root@git \/opt\/tast]# git branch \n  master\n* shopping\n<strong>3.\u67e5\u770b\u4e00\u4e0b\u65e5\u5fd7\u53d1\u73b0\u548c\u4e3b\u5206\u652f\u4e00\u81f4<\/strong>\n&#91;root@git \/opt\/tast]# git log\ncommit 344e148294e34bb2d47dcc78878d010f36b8f605\nAuthor: \u5b59\u5bcc\u9633 &lt;2195802440@qq.com&gt;\nDate:   Wed Jul 28 17:42:30 2021 +0800\n    \u5f00\u53d1\u5b8c\u621070%\ncommit 23f02c336312ca2c884f9f45f2d88cedf25a69e6\nAuthor: \u5b59\u5bcc\u9633 &lt;2195802440@qq.com&gt;\nDate:   Wed Jul 28 17:37:57 2021 +0800\n    \u8fd9\u662f\u7b2c\u4e00\u4e2aapp:66%\n<strong>4.\u5728\u5206\u652f\u4e0a\u7f16\u5199\u4ee3\u7801<\/strong>\n&#91;root@git \/opt\/tast]# cat index.html \n1. \u8fd9\u662f\u6211\u7684\u7b2c\u4e00\u4e2aapp: \u5b59\u67d0\u67d0\u7684\u8fd0\u7ef4\u4e4b\u8def:v1\n1. \u8fd9\u662f\u6211\u7684\u7b2c\u4e00\u4e2aapp: \u5b59\u67d0\u67d0\u7684\u8fd0\u7ef4\u4e4b\u8def:v1.1\n&#91;root@git \/opt\/tast]# vim index.html \n1. \u8fd9\u662f\u6211\u7684\u7b2c\u4e00\u4e2aapp: \u5b59\u67d0\u67d0\u7684\u8fd0\u7ef4\u4e4b\u8def:v1\n1. \u8fd9\u662f\u6211\u7684\u7b2c\u4e00\u4e2aapp: \u5b59\u67d0\u67d0\u7684\u8fd0\u7ef4\u4e4b\u8def:v1.1\n\u5f00\u53d1\u4e86\u7b2c\u4e09\u4e2a\u529f\u80fd: shop \u5f00\u53d166%\n<strong>5.\u5206\u652f\u4e0a\u63d0\u4ea4\u4ee3\u7801\u81f3\u4ee3\u7801\u4ed3\u5e93<\/strong>\n&#91;root@git \/opt\/tast]# git add index.html\n&#91;root@git \/opt\/tast]# git commit -m \"shop \u529f\u80fd\u5f00\u53d160%\"\n&#91;shopping 125b5a6] shop \u529f\u80fd\u5f00\u53d160%\n 1 file changed, 4 insertions(+), 2 deletions(-)\n<strong>6.\u6b64\u65f6\u53d1\u73b0\u4ee3\u7801\u6709bug\uff0c\u5207\u6362\u56de\u4e3b\u5206\u652f\u521b\u5efa\u4e00\u4e2a\u4fee\u590dbug\u7684\u5206\u652f<\/strong>\n&#91;root@git \/opt\/tast]# git branch bugfix\n&#91;root@git \/opt\/tast]# git branch \n  bugfix\n* master\n  shopping\n&#91;root@git \/opt\/tast]# git checkout bugfix \nSwitched to branch 'bugfix'\n<strong>7.\u4fee\u590d\u4ee3\u7801\u5e76\u63d0\u4ea4<\/strong>\n&#91;root@git \/opt\/tast]# cat index.html \n1. \u8fd9\u662f\u6211\u7684\u7b2c\u4e00\u4e2aapp: \u5b59\u67d0\u67d0\u7684\u8fd0\u7ef4\u4e4b\u8def:v1\n1. \u8fd9\u662f\u6211\u7684\u7b2c\u4e00\u4e2aapp: \u5b59\u67d0\u67d0\u7684\u8fd0\u7ef4\u4e4b\u8def:v1.1 bug\u4fee\u590d100%\n&#91;root@git \/opt\/tast]# git add index.html\n&#91;root@git \/opt\/tast]# git commit -m \"bug\u5df2\u7ecf\u4fee\u590d-c7\"\n&#91;bugfix cd66223] bug\u5df2\u7ecf\u4fee\u590d-c7\n 1 file changed, 1 insertion(+), 1 deletion(-)\n<strong>8.\u5207\u56de\u4e3b\u5206\u652f\uff0c\u5e76\u5c06\u4fee\u6539\u597d\u7684\u4ee3\u7801\u5408\u5e76merge<\/strong>\n&#91;root@git \/opt\/tast]# git checkout master \nSwitched to branch 'master'\n&#91;root@git \/opt\/tast]# git merge bugfix \nUpdating 344e148..cd66223\nFast-forward\n index.html | 2 +-\n 1 file changed, 1 insertion(+), 1 deletion(-)\n&#91;root@git \/opt\/tast]# cat index.html \n\u8fd9\u662f\u6211\u7684\u7b2c\u4e00\u4e2aapp: \u5b59\u67d0\u67d0\u7684\u8fd0\u7ef4\u4e4b\u8def:v1\n\u8fd9\u662f\u6211\u7684\u7b2c\u4e00\u4e2aapp: \u5b59\u67d0\u67d0\u7684\u8fd0\u7ef4\u4e4b\u8def:v1.1 bug\u4fee\u590d100%\n<strong>9.\u8fd9\u65f6\u5019bug\u4fee\u590d\u7684\u5206\u652f\u6ca1\u7528\u4e86\uff0c\u5220\u6389<\/strong>\n&#91;root@git \/opt\/tast]# git branch -d bugfix \nDeleted branch bugfix (was e47105e).\n&#91;root@git \/opt\/tast]# git branch\n* master\n  shopping<\/code><\/pre>\n\n\n\n<h2 class=\"has-large-font-size wp-block-heading\">\u4e09\u3001git\u8fdc\u7a0b\u4ed3\u5e93gitee\uff08\u7801\u4e91\uff09<\/h2>\n\n\n\n<pre class=\"wp-block-code has-medium-font-size\"><code>\u767b\u5f55https:\/\/gitee.com\/\u6ce8\u518c\u7801\u4e91\u8d26\u53f7\n\u70b9\u51fb\u4ed3\u5e93-\u53f3\u4e0a\u89d2+\u53f7\u70b9\u51fb\u521b\u5efa\u4ed3\u5e93\n\u586b\u5199\u76f8\u5173\u4fe1\u606f\u540e\u70b9\u51fb\u521b\u5efa\u5373\u53ef\n\u6839\u636e\u521b\u5efa\u5b8c\u6210\u8fd4\u56de\u7684\u7684\u9875\u9762\u4f9d\u6b21\u6267\u884c\u5982\u4e0b\u547d\u4ee4\n<strong>1.\u6dfb\u52a0\u8fdc\u7a0b\u4ed3\u5e93\u5730\u5740\u81f3\u672c\u5730remote add origin<\/strong>\n&#91;root@git \/opt\/tast]# git remote add origin git@gitee.com:sun-fuyang\/gits.git\n<strong>2.\u63a8\u9001\u672c\u5730\u4ed3\u5e93\u4ee3\u7801\u81f3\u8fdc\u7a0b\u4ed3\u5e93\u53d1\u73b0\u62a5\u9519<\/strong>\n\u56e0\u4e3assh\u8fde\u63a5\uff0c\u6240\u4ee5\u9700\u8981\u5c06\u672c\u673a\u516c\u94a5\u4e0a\u4f20\u81f3\u7801\u4e91\n\u70b9\u51fb\u53f3\u4e0a\u89d2\u4e2a\u4eba\u5934\u50cf-\u70b9\u51fb\u8bbe\u7f6e-\u70b9\u51fbssh\u516c\u94a5\uff0c\u5c06\u516c\u94a5\u590d\u5236\u8fdb\u53bb\n\u518d\u6b21\u4e0a\u4f20\uff0c\u6267\u884c\u6210\u529f\n&#91;root@git \/opt\/tast]# git push -u origin master\nCounting objects: 12, done.\nCompressing objects: 100% (8\/8), done.\nWriting objects: 100% (12\/12), 1.04 KiB | 0 bytes\/s, done.\nTotal 12 (delta 3), reused 0 (delta 0)\nremote: Powered by GITEE.COM &#91;GNK-6.0]\nTo git@gitee.com:sun-fuyang\/gits.git\n * &#91;new branch]      master -&gt; master\nBranch master set up to track remote branch master from origin.\n<strong>3.git\u4ece\u8fdc\u7a0b\u4ed3\u5e93\u4e0b\u8f7d\u4ee3\u7801\u5230\u672c\u5730\u4ed3\u5e93<\/strong>\n\u751f\u6210\u516c\u94a5\u5e76\u5c06\u516c\u94a5\u4e0a\u4f20\u81f3\u7801\u4e91\n##\u514b\u9686\uff08\u62c9\u53d6\uff09\u4ee3\u7801\u81f3\u672c\u5730\n$ git clone git@gitee.com:sun-fuyang\/gits.git\n#\u4f1a\u53d1\u73b0\u684c\u9762\u591a\u4e86\u4e2a\u76ee\u5f55\u8fdb\u5230\u76ee\u5f55\u91cc\n$ cd gits\/\n$ ls -a\n.\/  ..\/  .git\/  index.html\n#\u67e5\u770b\u5f53\u524d\u5206\u652f\u53d1\u73b0shopping\u5206\u652f\u4e0d\u89c1\u4e86\uff0c\u5207\u6362shopping\u5206\u652f\u62a5\u9519\n86151@LAPTOP-P2J23O9Q MINGW64 ~\/Desktop\/gits (master)\n$ git branch\n* master\n\n86151@LAPTOP-P2J23O9Q MINGW64 ~\/Desktop\/gits (master)\n$ git checkout shopping\nSwitched to a new branch 'shopping'\nBranch 'shopping' set up to track remote branch 'shopping' from 'origin'.\n\u4f46\u662f\u518d\u6b21\u67e5\u770b\u53d1\u73b0\u5df2\u7ecf\u5207\u6362\u81f3shopping\u5206\u652f\n86151@LAPTOP-P2J23O9Q MINGW64 ~\/Desktop\/gits (shopping)\n$ git branch\n  master\n* shopping\n<strong>4.git\u6807\u7b7etag<\/strong>\n#\u6307\u5b9a\u67d0\u4e2acommit\u6253\u6807\u7b7e\n&#91;root@git \/opt\/tast]# git tag -a \"v0.1\" -m \"0.1\u7248\u672c\u5f00\u53d160%\" 125b5a6b819a\n#\u9ed8\u8ba4\u7ed9\u6700\u65b0\u63d0\u4ea4\u7684commit\u6253\u6807\u7b7e\n&#91;root@git \/opt\/tast]# git tag -a \"v0.1\" -m \"0.1\u7248\u672c\u5f00\u53d160%\" \n#\u67e5\u770b\u6253\u7684\u7248\u672c\u6807\u7b7e\n&#91;root@git \/opt\/tast]# git tag -l\n1.0\nv0.1\n<strong>5.git\u5ffd\u7565\u4e0d\u9700\u8981\u63d0\u4ea4\u81f3\u4ee3\u7801\u4ed3\u5e93\u7684\u6587\u4ef6<\/strong>\n\u7f16\u8f91\u9690\u85cf\u6587\u4ef6.gitignore\n\u6587\u4ef6\u5185\u5bb9\u652f\u6301\u901a\u914d\u7b26\uff0c\u4f8b\u5982\u5ffd\u7565\u4ee5jpg\u7ed3\u5c3e\u7684\u6587\u4ef6\n<\/code><\/pre>\n","protected":false},"excerpt":{"rendered":"<p>\u5b59\u5bcc\u9633\uff0c \u6c5f\u6e56\u4eba\u79f0\u6ca1\u4eba\u79f0\u3002\u591a\u5e74\u4e92\u8054\u7f51\u8fd0\u7ef4\u5de5\u4f5c\u7ecf\u9a8c\uff0c\u66fe\u8d1f\u8d23\u8fc7\u5b59\u5e03\u65af\u5927\u89c4\u6a21\u96c6\u7fa4\u67b6\u6784\u81ea\u52a8\u5316\u8fd0\u7ef4\u7ba1\u7406\u5de5\u4f5c\u3002\u64c5\u957fWeb\u96c6 [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[18],"tags":[],"_links":{"self":[{"href":"https:\/\/www.buyao007.icu\/index.php?rest_route=\/wp\/v2\/posts\/323"}],"collection":[{"href":"https:\/\/www.buyao007.icu\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.buyao007.icu\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.buyao007.icu\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.buyao007.icu\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=323"}],"version-history":[{"count":2,"href":"https:\/\/www.buyao007.icu\/index.php?rest_route=\/wp\/v2\/posts\/323\/revisions"}],"predecessor-version":[{"id":325,"href":"https:\/\/www.buyao007.icu\/index.php?rest_route=\/wp\/v2\/posts\/323\/revisions\/325"}],"wp:attachment":[{"href":"https:\/\/www.buyao007.icu\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=323"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.buyao007.icu\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=323"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.buyao007.icu\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=323"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}