{"id":2402,"date":"2017-05-26T13:47:06","date_gmt":"2017-05-26T05:47:06","guid":{"rendered":"http:\/\/www.qdabc.cn\/?p=2402"},"modified":"2017-05-26T13:47:20","modified_gmt":"2017-05-26T05:47:20","slug":"node%e3%80%81git%e3%80%81mac%e3%80%81vsc%e3%80%81linux%e5%b8%b8%e7%94%a8%e5%91%bd%e4%bb%a4%e6%80%bb%e7%bb%93","status":"publish","type":"post","link":"http:\/\/www.qdabc.cn\/?p=2402","title":{"rendered":"node\u3001git\u3001mac\u3001vsc\u3001linux\u5e38\u7528\u547d\u4ee4\u603b\u7ed3"},"content":{"rendered":"<p>\u6682\u65f6\u5148\u8fd9\u4e9b\u00a0\u00a0\u4ee5\u540e\u518d\u6dfb\u52a0<\/p>\n<p>1.<span style=\"font-size: x-large;\">node<\/span>:<\/p>\n<p>npm init\u00a0\u00a0\/\/\u521d\u59cb\u5316package.json<br \/>\nnpm install \/\/ -g \u4e3a\u5168\u5c40\u5b89\u88c5<br \/>\nnpm uninstall \/\/ \u5378\u8f7d\u5305<br \/>\nnpm update \/\/\u66f4\u65b0\u5305<br \/>\nnpm outdated \/\/\u5217\u51fa\u6240\u6709\u8fc7\u65f6\u5305<br \/>\nnpm help \/\/\u67e5\u770b\u5e2e\u52a9\u9879<br \/>\nnpm root \/\/\u67e5\u770bnodemodules \u5b89\u88c5\u8def\u5f84<\/p>\n<p>2.<span style=\"font-size: x-large;\">git<\/span>:<\/p>\n<p>git clone &#8230;.git \/\/\u514b\u9686<br \/>\ngit pull origin master \/\/\u62c9\u53d6\u5e76\u4e14merge<br \/>\ngit fetch\u00a0\u00a0origin master \/\/\u53ea\u662f\u62c9\u53d6\u5230\u672c\u5730<br \/>\ngit merge origin master \/\/merge\u672c\u5730<br \/>\ngit add . \/\/\u4e00\u6b21\u6dfb\u52a0\u591a\u4e2a\u6587\u4ef6\u8fdb\u5165\u6682\u5b58\u533a<br \/>\ngit commit -m &#8216;\u63d0\u4ea4\u540d\u79f0&#8217; \/\/\u8fdb\u5165\u7248\u672c\u533a<br \/>\ngit push origin master \/\/\u63a8\u9001\u5230\u670d\u52a1\u5668<\/p>\n<p>\u53ea\u63d0\u4ea4\u5355\u4e2a\u6587\u4ef6<br \/>\n1.\u300bgit add\u00a0\u00a0aa.js \/\/\u628a\u5355\u4e2a\u6587\u4ef6\u653e\u5165\u6682\u5b58\u533a<br \/>\n2.\u300bgit stash -u -k\u00a0\u00a0\/\/\u5ffd\u7565\u5176\u4ed6\u6587\u4ef6\u4fee\u6539<br \/>\n3.\u300bgit commit -m &#8221; \u63d0\u4ea4aa.js&#8221;<br \/>\n4.\u300bgit stash pop \/\/\u663e\u793a\u5176\u4ed6\u4fee\u6539<br \/>\n5.\u300b\u7136\u540e\u5c31\u53ef\u4ee5\u7528 git add .\u548cgit commit -m &#8220;\u5176\u4ed6\u6587\u4ef6\u63d0\u4ea4&#8221;<\/p>\n<p>3.<span style=\"font-size: x-large;\">mac<\/span>:<\/p>\n<p>m+q \/\/\u5f3a\u5236\u9000\u51fa\u7a0b\u5e8f<br \/>\nm+o+\u5de6\u53f3\u65b9\u5411\u952e \/\/\u8f6f\u4ef6\u5de6\u53f3\u754c\u9762\u5207\u6362<br \/>\nm+tab \/\/\u5207\u6362\u7a0b\u5e8f<br \/>\nm+`\u00a0 \u00a0\/\/\u5207\u6362\u7edf\u4e00\u7a0b\u5e8f\u7684\u7a97\u53e3<br \/>\nm+o+shift+esc \/\/\u5f3a\u5236\u9000\u51fa\u5361\u6b7b\u7a0b\u5e8f<\/p>\n<p>4.<span style=\"font-size: x-large;\">vsc<\/span>:<\/p>\n<p>m+shift+f5 \/\/\u91cd\u542f\u8c03\u8bd5<br \/>\nm+shift+y \/\/\u5feb\u901f\u6253\u5f00\u7ec8\u7aef<\/p>\n<p>5.<span style=\"font-size: x-large;\">linux<\/span>:<\/p>\n<p>ls\u2013List \/\/\u5217\u4e3e\u51fa\u5f53\u524d\u5de5\u4f5c\u76ee\u5f55\u7684\u5185\u5bb9<br \/>\nls -a\u00a0\u00a0\/\/\u663e\u793a\u9690\u85cf\u6587\u4ef6<br \/>\nmake dir filesName \/\/\u521b\u5efa\u6587\u4ef6\u5939<br \/>\npwd \/\/\u663e\u793a\u6587\u4ef6\u8def\u5f84<br \/>\ncd \/\/\u8fdb\u5165\u6587\u4ef6\u76ee\u5f55<br \/>\nrmdir \/\/\u5220\u9664\u6587\u4ef6\u76ee\u5f55<br \/>\ncp \/\/\u5bf9\u6587\u4ef6\u6216\u6587\u4ef6\u5939\u8fdb\u884c\u590d\u5236\uff0c\u53ef\u4ee5\u4f7f\u7528cp -r\u9009\u9879\u6765\u9012\u5f52\u590d\u5236\u6587\u4ef6\u5939<br \/>\ncat \/\/\u67e5\u770b\u6587\u4ef6\u5185\u5bb9<br \/>\ncat \/etc\/shells \/\/\u663e\u793a\u6240\u6709\u7684shell\u5de5\u5177<br \/>\nfind \/\/\u67e5\u627e\u6587\u4ef6<br \/>\nfind &lt;folder-to-search&gt; -iname &lt;file-name&gt; \/\/\u5728\u67d0\u4e2a\u76ee\u5f55\u4e0b\u67e5\u627e\u67d0\u4e2a\u6587\u4ef6<br \/>\ntar \/\/tar\u547d\u4ee4\u80fd\u521b\u5efa\u3001\u67e5\u770b\u548c\u63d0\u53d6tar\u538b\u7f29\u6587\u4ef6\u3002tar -cvf\u662f\u521b\u5efa\u5bf9\u5e94\u538b\u7f29\u6587\u4ef6\uff0ctar -tvf\u6765\u67e5\u770b\u5bf9\u5e94\u538b\u7f29\u6587\u4ef6\uff0ctar -xvf\u6765\u63d0\u53d6\u5bf9\u5e94\u538b\u7f29\u6587\u4ef6\u3002<br \/>\ntar -cvf tar1.tar name.txt text.txt \/\/\u628aname.txt\u548c\u3002txt<\/p>\n<p class=\"post-copyright\">\u6b22\u8fce\u5206\u4eab\u672c\u6587\uff0c\u8f6c\u8f7d\u8bf7\u4fdd\u7559\u51fa\u5904\uff1a<a href=\"http:\/\/www.qdabc.cn\">\u524d\u7aefABC<\/a> &raquo; <a href=\"http:\/\/www.qdabc.cn\/?p=2402\">node\u3001git\u3001mac\u3001vsc\u3001linux\u5e38\u7528\u547d\u4ee4\u603b\u7ed3<\/a><\/p>","protected":false},"excerpt":{"rendered":"<p>\u6682\u65f6\u5148\u8fd9\u4e9b\u00a0\u00a0\u4ee5\u540e\u518d\u6dfb\u52a0 1.node: npm init\u00a0\u00a0\/\/\u521d\u59cb\u5316package.json npm install \/\/ -g \u4e3a\u5168\u5c40\u5b89\u88c5 npm uninstall \/\/ \u5378\u8f7d\u5305 npm up [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[20,355,353,33,354,356],"_links":{"self":[{"href":"http:\/\/www.qdabc.cn\/index.php?rest_route=\/wp\/v2\/posts\/2402"}],"collection":[{"href":"http:\/\/www.qdabc.cn\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/www.qdabc.cn\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/www.qdabc.cn\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/www.qdabc.cn\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=2402"}],"version-history":[{"count":2,"href":"http:\/\/www.qdabc.cn\/index.php?rest_route=\/wp\/v2\/posts\/2402\/revisions"}],"predecessor-version":[{"id":2404,"href":"http:\/\/www.qdabc.cn\/index.php?rest_route=\/wp\/v2\/posts\/2402\/revisions\/2404"}],"wp:attachment":[{"href":"http:\/\/www.qdabc.cn\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=2402"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/www.qdabc.cn\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=2402"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/www.qdabc.cn\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=2402"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}