{"id":33688,"date":"2025-04-28T10:47:05","date_gmt":"2025-04-28T02:47:05","guid":{"rendered":"https:\/\/www.wsisp.com\/helps\/33688.html"},"modified":"2025-04-28T10:47:05","modified_gmt":"2025-04-28T02:47:05","slug":"%e3%80%90git%e3%80%91%e9%85%8d%e7%bd%aegit","status":"publish","type":"post","link":"https:\/\/www.wsisp.com\/helps\/33688.html","title":{"rendered":"\u3010Git\u3011\u914d\u7f6eGit"},"content":{"rendered":"<h2>\u914d\u7f6eGit<\/h2>\n<h3>\u5ffd\u7565\u7279\u6b8a\u6587\u4ef6<\/h3>\n<p>\u5728\u65e5\u5e38\u5f00\u53d1\u4e2d&#xff0c;\u6709\u4e9b\u6587\u4ef6\u4e0d\u60f3\u6216\u4e0d\u5e94\u8be5\u63d0\u4ea4\u5230\u8fdc\u7aef&#xff0c;\u5982\u4fdd\u5b58\u6570\u636e\u5e93\u5bc6\u7801\u7684\u914d\u7f6e\u6587\u4ef6\u3002<\/p>\n<p>\u5728Git\u5de5\u4f5c\u533a\u7684\u6839\u76ee\u5f55\u4e0b\u521b\u5efa\u4e00\u4e2a\u7279\u6b8a\u7684.gitignore\u6587\u4ef6&#xff0c;\u628a\u8981\u5ffd\u7565\u7684\u6587\u4ef6\u540d\u586b\u8fdb\u53bb&#xff0c;Git\u5c31\u4f1a\u81ea\u52a8\u5ffd\u7565\u8fd9\u4e9b\u6587\u4ef6\u3002<\/p>\n<p>\u4e0d\u9700\u8981\u4ece\u5934\u5199.gitignore\u6587\u4ef6&#xff0c;gitee\u5728\u521b\u5efa\u4ed3\u5e93\u65f6\u53ef\u4e3a\u6211\u4eec\u751f\u6210&#xff0c;\u4f46\u9700\u8981\u4e3b\u52a8\u52fe\u9009&#xff1a;<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/04\/20250428024704-680eec2860b21.png\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" \/><\/p>\n<p>\u5982\u679c\u5f53\u65f6\u6ca1\u6709\u9009\u62e9\u8fd9\u4e2a\u9009\u62e9&#xff0c;\u5728\u5de5\u4f5c\u533a\u521b\u5efa\u4e00\u4e2a\u4e5f\u662f\u53ef\u4ee5\u7684\u3002<\/p>\n<p>\u65e0\u8bba\u54ea\u79cd\u65b9\u5f0f&#xff0c;\u6700\u7ec8\u90fd\u53ef\u4ee5\u5f97\u5230\u4e00\u4e2a\u5b8c\u6574\u7684 .gitignore \u6587\u4ef6&#xff0c;\u4f8b\u5982\u6211\u4eec\u60f3\u5ffd\u7565\u4ee5 .so \u548c .ini \u7ed3\u5c3e\u6240\u6709\u2f42\u4ef6&#xff0c; .gitignore \u7684\u5185\u5bb9\u5982\u4e0b&#xff1a;<\/p>\n<p># \u7701\u7565\u9009\u62e9\u6a21\u677f\u7684\u5185\u5bb9<br \/>\n&#8230;<br \/>\n# My configurations&#xff1a;<br \/>\n*.ini<br \/>\n*.so<\/p>\n<p>\u5728.gitignore\u6587\u4ef6\u4e2d\u4e5f\u53ef\u4ee5\u6307\u5b9a\u67d0\u4e2a\u786e\u5b9a\u7684\u6587\u4ef6\u3002<\/p>\n<p>\u6700\u540e&#xff0c;\u628a.gitignore\u63d0\u4ea4\u5230\u8fdc\u7aef&#xff1a;<\/p>\n<p>$ vim.gitignore<br \/>\n$ <span class=\"token function\">git<\/span> add.<br \/>\n$ <span class=\"token function\">git<\/span> commit -m<span class=\"token string\">&#034;add.gitignore&#034;<\/span><br \/>\n<span class=\"token punctuation\">[<\/span>master 97811ab<span class=\"token punctuation\">]<\/span> add.gitignore<br \/>\n <span class=\"token number\">1<\/span> <span class=\"token function\">file<\/span> changed, <span class=\"token number\">3<\/span> insertions<span class=\"token punctuation\">(<\/span>&#043;<span class=\"token punctuation\">)<\/span><br \/>\n create mode <span class=\"token number\">100644<\/span>.gitignore<\/p>\n<p>$ <span class=\"token function\">git<\/span> push origin master<br \/>\nEnumerating objects: <span class=\"token number\">4<\/span>, done.<br \/>\nCounting objects: <span class=\"token number\">100<\/span>% <span class=\"token punctuation\">(<\/span><span class=\"token number\">4<\/span>\/4<span class=\"token punctuation\">)<\/span>, done.<br \/>\nCompressing objects: <span class=\"token number\">100<\/span>% <span class=\"token punctuation\">(<\/span><span class=\"token number\">3<\/span>\/3<span class=\"token punctuation\">)<\/span>, <span class=\"token number\">362<\/span> bytes <span class=\"token operator\">|<\/span> <span class=\"token number\">362.00<\/span> KiB\/s, done.<br \/>\nWriting objects: <span class=\"token number\">100<\/span>% <span class=\"token punctuation\">(<\/span><span class=\"token number\">3<\/span>\/3<span class=\"token punctuation\">)<\/span>, <span class=\"token number\">268<\/span> bytes <span class=\"token operator\">|<\/span> <span class=\"token number\">134.00<\/span> KiB\/s, done.<br \/>\nTotal <span class=\"token number\">3<\/span> <span class=\"token punctuation\">(<\/span>delta <span class=\"token number\">0<\/span><span class=\"token punctuation\">)<\/span>, reused <span class=\"token number\">0<\/span> <span class=\"token punctuation\">(<\/span>delta <span class=\"token number\">0<\/span><span class=\"token punctuation\">)<\/span><br \/>\nremote: Powered by GITEE.COM <span class=\"token punctuation\">[<\/span>GNK-6.4<span class=\"token punctuation\">]<\/span><br \/>\nTo gitee.com:hyb91\/git_teaching.git<br \/>\n 60e6b0a<span class=\"token punctuation\">..<\/span>97811ab  master &#8211;<span class=\"token operator\">&gt;<\/span> master<\/p>\n<p>\u63a5\u7740\u9a8c\u8bc1.gitignore\u6587\u4ef6\u7684\u80fd\u529b&#xff0c;\u5728\u5de5\u4f5c\u533a\u65b0\u589e\u4e24\u4e2a\u6587\u4ef6a.so b.ini&#xff1a;<\/p>\n<p>$ <span class=\"token function\">touch<\/span> a.so b.ini<\/p>\n<p>$ <span class=\"token function\">git<\/span> status<br \/>\nOn branch master<br \/>\nYour branch is up to <span class=\"token function\">date<\/span> with <span class=\"token string\">&#039;origin\/master&#039;<\/span><span class=\"token builtin class-name\">.<\/span><\/p>\n<p>nothing to commit, working tree clean<\/p>\n<p>\u68c0\u9a8c.gitignore\u7684\u6807\u51c6\u5c31\u662fgit status\u547d\u4ee4\u663e\u793aworking tree clean\u3002<\/p>\n<p>\u82e5\u60f3\u5f3a\u5236\u6dfb\u52a0\u88ab\u5ffd\u7565\u7684\u6587\u4ef6&#xff0c;\u53ef\u7528 -f \u5f3a\u5236\u6dfb\u52a0&#xff1a;<\/p>\n<p>$ <span class=\"token function\">git<\/span> <span class=\"token function\">add<\/span> <span class=\"token parameter variable\">-f<\/span> <span class=\"token punctuation\">[<\/span>filename<span class=\"token punctuation\">]<\/span><\/p>\n<p>\u82e5\u6000\u7591.gitignore\u5199\u5f97\u6709\u95ee\u9898&#xff0c;\u53ef\u7528git check-ignore\u547d\u4ee4\u68c0\u67e5&#xff0c;\u5982\u68c0\u67e5a.so\u6587\u4ef6&#xff1a;<\/p>\n<p>$ <span class=\"token function\">git<\/span> check-ignore <span class=\"token parameter variable\">-v<\/span> a.so<br \/>\n.gitignore:3:*.so         a.so<\/p>\n<p>\u5f53\u7f16\u5199\u89c4\u5219\u6392\u9664\u90e8\u5206\u6587\u4ef6&#xff08;\u5982\u6392\u9664\u6240\u6709.\u5f00\u5934\u7684\u9690\u85cf\u6587\u4ef6&#xff1a;.* &#xff09;&#xff0c;\u5374\u53d1\u73b0.gitignore\u4e5f\u88ab\u6392\u9664&#xff0c;\u53ef\u6dfb\u52a0\u4f8b\u5916\u89c4\u5219&#xff1a;<\/p>\n<p># \u6392\u9664\u6240\u6709.\u5f00\u5934\u7684\u9690\u85cf\u6587\u4ef6&#xff1a;<br \/>\n.*<\/p>\n<p># \u4e0d\u6392\u9664.gitignore<br \/>\n!.gitignore<\/p>\n<p>\u628a\u6307\u5b9a\u6587\u4ef6\u6392\u9664\u5728.gitignore\u89c4\u5219\u5916\u7684\u5199\u6cd5\u662f !&#043;\u6587\u4ef6\u540d \u3002<\/p>\n<h3>\u7ed9\u547d\u4ee4\u914d\u7f6e\u522b\u540d<\/h3>\n<p>\u4f7f\u7528Git\u65f6&#xff0c;\u6709\u4e9b\u547d\u4ee4\u8f83\u957f&#xff0c;git\u652f\u6301\u5bf9\u547d\u4ee4\u8fdb\u884c\u7b80\u5316\u3002<\/p>\n<ul>\n<li>\u5c06git status\u7b80\u5316\u4e3agit st&#xff0c;\u5bf9\u5e94\u7684\u547d\u4ee4\u4e3a&#xff1a;<\/li>\n<\/ul>\n<p>$ <span class=\"token function\">git<\/span> config <span class=\"token parameter variable\">&#8211;global<\/span> alias.st status<\/p>\n<p>\u2013global\u53c2\u6570\u662f\u5168\u5c40\u53c2\u6570&#xff0c;\u8fd9\u4e9b\u547d\u4ee4\u5728\u8fd9\u53f0\u7535\u8111\u7684\u6240\u6709Git\u4ed3\u5e93\u90fd\u6709\u7528\u3002\u4e0d\u52a0&#xff0c;\u5219\u53ea\u9488\u5bf9\u5f53\u524d\u4ed3\u5e93\u8d77\u4f5c\u7528\u3002 \u4f7f\u7528git st\u7684\u6548\u679c&#xff1a;<\/p>\n<p>$ <span class=\"token function\">git<\/span> st<br \/>\nOn branch master<br \/>\nYour branch is up to <span class=\"token function\">date<\/span> with <span class=\"token string\">&#039;origin\/master&#039;<\/span><span class=\"token builtin class-name\">.<\/span><\/p>\n<p>nothing to commit, working tree clean<\/p>\n<ul>\n<li>\u914d\u7f6e\u4e00\u4e2agit last&#xff0c;\u8ba9\u5176\u663e\u793a\u6700\u540e\u4e00\u6b21\u63d0\u4ea4\u4fe1\u606f&#xff1a;<\/li>\n<\/ul>\n<p>$ <span class=\"token function\">git<\/span> config <span class=\"token parameter variable\">&#8211;global<\/span> alias.last <span class=\"token string\">&#039;log -1&#039;<\/span><\/p>\n<p>\u4f7f\u7528git last\u663e\u793a\u6700\u8fd1\u4e00\u6b21\u7684\u63d0\u4ea4&#xff1a;<\/p>\n<p>hyb&#064;139-159-150-152:~\/git_teaching$ <span class=\"token function\">git<\/span> last<br \/>\ncommit 97811ab0d4374aeb54fae32bfc762b08170 <span class=\"token punctuation\">(<\/span>HEAD &#8211;<span class=\"token operator\">&gt;<\/span> master, origin\/master, origin\/HEAD<span class=\"token punctuation\">)<\/span><br \/>\nAuthor: hyb <span class=\"token operator\">&lt;<\/span>265811ab0d4374aeb54fae32bfc762b08170&#064;qq.com<span class=\"token operator\">&gt;<\/span><br \/>\nDate:   Fri May <span class=\"token number\">12<\/span> <span class=\"token number\">17<\/span>:27:06 <span class=\"token number\">2023<\/span> &#043;0800<\/p>\n<p>    add.gitignore<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u6587\u7ae0\u6d4f\u89c8\u9605\u8bfb1.5k\u6b21\uff0c\u70b9\u8d5e8\u6b21\uff0c\u6536\u85cf10\u6b21\u3002\u5728\u65e5\u5e38\u5f00\u53d1\u4e2d\uff0c\u6709\u4e9b\u6587\u4ef6\u4e0d\u60f3\u6216\u4e0d\u5e94\u8be5\u63d0\u4ea4\u5230\u8fdc\u7aef\uff0c\u5982\u4fdd\u5b58\u6570\u636e\u5e93\u5bc6\u7801\u7684\u914d\u7f6e\u6587\u4ef6\u3002\u5728Git\u5de5\u4f5c\u533a\u7684\u6839\u76ee\u5f55\u4e0b\u521b\u5efa\u4e00\u4e2a\u7279\u6b8a\u7684.gitignore\u6587\u4ef6\uff0c\u628a\u8981\u5ffd\u7565\u7684\u6587\u4ef6\u540d\u586b\u8fdb\u53bb\uff0cGit\u5c31\u4f1a\u81ea\u52a8\u5ffd\u7565\u8fd9\u4e9b\u6587\u4ef6\u3002\u4e0d\u9700\u8981\u4ece\u5934\u5199.gitignore\u6587\u4ef6\uff0cgitee\u5728\u521b\u5efa\u4ed3\u5e93\u65f6\u53ef\u4e3a\u6211\u4eec\u751f\u6210\uff0c\u4f46\u9700\u8981\u4e3b\u52a8\u52fe\u9009\uff1a\u5982\u679c\u5f53\u65f6\u6ca1\u6709\u9009\u62e9\u8fd9\u4e2a\u9009\u62e9\uff0c\u5728\u5de5\u4f5c\u533a\u521b\u5efa\u4e00\u4e2a\u4e5f\u662f\u53ef\u4ee5\u7684\u3002\u65e0\u8bba\u54ea\u79cd\u65b9\u5f0f\uff0c\u6700\u7ec8\u90fd\u53ef\u4ee5\u5f97\u5230\u4e00\u4e2a\u5b8c\u6574\u7684.gitignore\u6587\u4ef6\uff0c\u4f8b\u5982\u6211\u4eec\u60f3\u5ffd\u7565\u4ee5.so\u548c.ini\u7ed3\u5c3e\u6240\u6709\u2f42\u4ef6\uff0c.gitignore\u3002<\/p>\n","protected":false},"author":2,"featured_media":33687,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[1299,89,323],"topic":[],"class_list":["post-33688","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-server","tag-elasticsearch","tag-git","tag-323"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v20.3 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>\u3010Git\u3011\u914d\u7f6eGit - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.wsisp.com\/helps\/33688.html\" \/>\n<meta property=\"og:locale\" content=\"zh_CN\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"\u3010Git\u3011\u914d\u7f6eGit - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"og:description\" content=\"\u6587\u7ae0\u6d4f\u89c8\u9605\u8bfb1.5k\u6b21\uff0c\u70b9\u8d5e8\u6b21\uff0c\u6536\u85cf10\u6b21\u3002\u5728\u65e5\u5e38\u5f00\u53d1\u4e2d\uff0c\u6709\u4e9b\u6587\u4ef6\u4e0d\u60f3\u6216\u4e0d\u5e94\u8be5\u63d0\u4ea4\u5230\u8fdc\u7aef\uff0c\u5982\u4fdd\u5b58\u6570\u636e\u5e93\u5bc6\u7801\u7684\u914d\u7f6e\u6587\u4ef6\u3002\u5728Git\u5de5\u4f5c\u533a\u7684\u6839\u76ee\u5f55\u4e0b\u521b\u5efa\u4e00\u4e2a\u7279\u6b8a\u7684.gitignore\u6587\u4ef6\uff0c\u628a\u8981\u5ffd\u7565\u7684\u6587\u4ef6\u540d\u586b\u8fdb\u53bb\uff0cGit\u5c31\u4f1a\u81ea\u52a8\u5ffd\u7565\u8fd9\u4e9b\u6587\u4ef6\u3002\u4e0d\u9700\u8981\u4ece\u5934\u5199.gitignore\u6587\u4ef6\uff0cgitee\u5728\u521b\u5efa\u4ed3\u5e93\u65f6\u53ef\u4e3a\u6211\u4eec\u751f\u6210\uff0c\u4f46\u9700\u8981\u4e3b\u52a8\u52fe\u9009\uff1a\u5982\u679c\u5f53\u65f6\u6ca1\u6709\u9009\u62e9\u8fd9\u4e2a\u9009\u62e9\uff0c\u5728\u5de5\u4f5c\u533a\u521b\u5efa\u4e00\u4e2a\u4e5f\u662f\u53ef\u4ee5\u7684\u3002\u65e0\u8bba\u54ea\u79cd\u65b9\u5f0f\uff0c\u6700\u7ec8\u90fd\u53ef\u4ee5\u5f97\u5230\u4e00\u4e2a\u5b8c\u6574\u7684.gitignore\u6587\u4ef6\uff0c\u4f8b\u5982\u6211\u4eec\u60f3\u5ffd\u7565\u4ee5.so\u548c.ini\u7ed3\u5c3e\u6240\u6709\u2f42\u4ef6\uff0c.gitignore\u3002\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.wsisp.com\/helps\/33688.html\" \/>\n<meta property=\"og:site_name\" content=\"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"article:published_time\" content=\"2025-04-28T02:47:05+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/04\/20250428024704-680eec2860b21.png\" \/>\n<meta name=\"author\" content=\"admin\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"\u4f5c\u8005\" \/>\n\t<meta name=\"twitter:data1\" content=\"admin\" \/>\n\t<meta name=\"twitter:label2\" content=\"\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4\" \/>\n\t<meta name=\"twitter:data2\" content=\"2 \u5206\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/33688.html\",\"url\":\"https:\/\/www.wsisp.com\/helps\/33688.html\",\"name\":\"\u3010Git\u3011\u914d\u7f6eGit - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\",\"isPartOf\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#website\"},\"datePublished\":\"2025-04-28T02:47:05+00:00\",\"dateModified\":\"2025-04-28T02:47:05+00:00\",\"author\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41\"},\"breadcrumb\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/33688.html#breadcrumb\"},\"inLanguage\":\"zh-Hans\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.wsisp.com\/helps\/33688.html\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/33688.html#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\u9996\u9875\",\"item\":\"https:\/\/www.wsisp.com\/helps\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"\u3010Git\u3011\u914d\u7f6eGit\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/#website\",\"url\":\"https:\/\/www.wsisp.com\/helps\/\",\"name\":\"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\",\"description\":\"\u9999\u6e2f\u670d\u52a1\u5668_\u9999\u6e2f\u4e91\u670d\u52a1\u5668\u8d44\u8baf_\u670d\u52a1\u5668\u5e2e\u52a9\u6587\u6863_\u670d\u52a1\u5668\u6559\u7a0b\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.wsisp.com\/helps\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"zh-Hans\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41\",\"name\":\"admin\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"zh-Hans\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery\",\"contentUrl\":\"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery\",\"caption\":\"admin\"},\"sameAs\":[\"http:\/\/wp.wsisp.com\"],\"url\":\"https:\/\/www.wsisp.com\/helps\/author\/admin\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"\u3010Git\u3011\u914d\u7f6eGit - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.wsisp.com\/helps\/33688.html","og_locale":"zh_CN","og_type":"article","og_title":"\u3010Git\u3011\u914d\u7f6eGit - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","og_description":"\u6587\u7ae0\u6d4f\u89c8\u9605\u8bfb1.5k\u6b21\uff0c\u70b9\u8d5e8\u6b21\uff0c\u6536\u85cf10\u6b21\u3002\u5728\u65e5\u5e38\u5f00\u53d1\u4e2d\uff0c\u6709\u4e9b\u6587\u4ef6\u4e0d\u60f3\u6216\u4e0d\u5e94\u8be5\u63d0\u4ea4\u5230\u8fdc\u7aef\uff0c\u5982\u4fdd\u5b58\u6570\u636e\u5e93\u5bc6\u7801\u7684\u914d\u7f6e\u6587\u4ef6\u3002\u5728Git\u5de5\u4f5c\u533a\u7684\u6839\u76ee\u5f55\u4e0b\u521b\u5efa\u4e00\u4e2a\u7279\u6b8a\u7684.gitignore\u6587\u4ef6\uff0c\u628a\u8981\u5ffd\u7565\u7684\u6587\u4ef6\u540d\u586b\u8fdb\u53bb\uff0cGit\u5c31\u4f1a\u81ea\u52a8\u5ffd\u7565\u8fd9\u4e9b\u6587\u4ef6\u3002\u4e0d\u9700\u8981\u4ece\u5934\u5199.gitignore\u6587\u4ef6\uff0cgitee\u5728\u521b\u5efa\u4ed3\u5e93\u65f6\u53ef\u4e3a\u6211\u4eec\u751f\u6210\uff0c\u4f46\u9700\u8981\u4e3b\u52a8\u52fe\u9009\uff1a\u5982\u679c\u5f53\u65f6\u6ca1\u6709\u9009\u62e9\u8fd9\u4e2a\u9009\u62e9\uff0c\u5728\u5de5\u4f5c\u533a\u521b\u5efa\u4e00\u4e2a\u4e5f\u662f\u53ef\u4ee5\u7684\u3002\u65e0\u8bba\u54ea\u79cd\u65b9\u5f0f\uff0c\u6700\u7ec8\u90fd\u53ef\u4ee5\u5f97\u5230\u4e00\u4e2a\u5b8c\u6574\u7684.gitignore\u6587\u4ef6\uff0c\u4f8b\u5982\u6211\u4eec\u60f3\u5ffd\u7565\u4ee5.so\u548c.ini\u7ed3\u5c3e\u6240\u6709\u2f42\u4ef6\uff0c.gitignore\u3002","og_url":"https:\/\/www.wsisp.com\/helps\/33688.html","og_site_name":"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","article_published_time":"2025-04-28T02:47:05+00:00","og_image":[{"url":"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/04\/20250428024704-680eec2860b21.png"}],"author":"admin","twitter_card":"summary_large_image","twitter_misc":{"\u4f5c\u8005":"admin","\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4":"2 \u5206"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.wsisp.com\/helps\/33688.html","url":"https:\/\/www.wsisp.com\/helps\/33688.html","name":"\u3010Git\u3011\u914d\u7f6eGit - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","isPartOf":{"@id":"https:\/\/www.wsisp.com\/helps\/#website"},"datePublished":"2025-04-28T02:47:05+00:00","dateModified":"2025-04-28T02:47:05+00:00","author":{"@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41"},"breadcrumb":{"@id":"https:\/\/www.wsisp.com\/helps\/33688.html#breadcrumb"},"inLanguage":"zh-Hans","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.wsisp.com\/helps\/33688.html"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.wsisp.com\/helps\/33688.html#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\u9996\u9875","item":"https:\/\/www.wsisp.com\/helps"},{"@type":"ListItem","position":2,"name":"\u3010Git\u3011\u914d\u7f6eGit"}]},{"@type":"WebSite","@id":"https:\/\/www.wsisp.com\/helps\/#website","url":"https:\/\/www.wsisp.com\/helps\/","name":"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","description":"\u9999\u6e2f\u670d\u52a1\u5668_\u9999\u6e2f\u4e91\u670d\u52a1\u5668\u8d44\u8baf_\u670d\u52a1\u5668\u5e2e\u52a9\u6587\u6863_\u670d\u52a1\u5668\u6559\u7a0b","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.wsisp.com\/helps\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"zh-Hans"},{"@type":"Person","@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41","name":"admin","image":{"@type":"ImageObject","inLanguage":"zh-Hans","@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/image\/","url":"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery","contentUrl":"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery","caption":"admin"},"sameAs":["http:\/\/wp.wsisp.com"],"url":"https:\/\/www.wsisp.com\/helps\/author\/admin"}]}},"_links":{"self":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts\/33688","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/comments?post=33688"}],"version-history":[{"count":0,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts\/33688\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/media\/33687"}],"wp:attachment":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/media?parent=33688"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/categories?post=33688"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/tags?post=33688"},{"taxonomy":"topic","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/topic?post=33688"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}