{"id":1613,"date":"2023-03-25T11:41:00","date_gmt":"2023-03-25T03:41:00","guid":{"rendered":""},"modified":"2023-03-25T11:41:00","modified_gmt":"2023-03-25T03:41:00","slug":"Git\u73af\u5883\u8bbe\u7f6e","status":"publish","type":"post","link":"https:\/\/bianchenghao6.com\/1613.html","title":{"rendered":"Git\u73af\u5883\u8bbe\u7f6e"},"content":{"rendered":"
\n
$ git config--global user.name \"Himanshu Dubey\"<\/span><\/pre>\n<\/code>\n <\/div>\n
\n \u8bbe\u7f6e\u7535\u5b50\u90ae\u4ef6ID\n <\/div>\n\n Git\u6bcf\u6b21\u63d0\u4ea4\u90fd\u4f1a\u4f7f\u7528\u6b64\u7535\u5b50\u90ae\u4ef6ID\u3002\n <\/div>\n\n$ git config--global user.email \"himanshudubey481@gmail.com\"<\/span><\/pre>\n<\/code>\n <\/div>\n
\n \u7528\u6237\u53ef\u4ee5\u8bbe\u7f6e\u8bb8\u591a\u5176\u4ed6\u914d\u7f6e\u9009\u9879\u3002\n <\/div>\n\n \u8bbe\u7f6e\u7f16\u8f91\u5668\n <\/div>\n\n \u60a8\u53ef\u4ee5\u8bbe\u7f6e\u9ed8\u8ba4\u6587\u672cGit\u9700\u8981\u60a8\u8f93\u5165\u6d88\u606f\u65f6\u7684\u7f16\u8f91\u5668\u3002\u5982\u679c\u5c1a\u672a\u9009\u62e9\u4efb\u4f55\u7f16\u8f91\u5668\uff0c\u5219Git\u5c06\u4f7f\u7528\u9ed8\u8ba4\u7cfb\u7edf\u7684\u7f16\u8f91\u5668\u3002\n <\/div>\n\n \u8981\u9009\u62e9\u5176\u4ed6\u6587\u672c\u7f16\u8f91\u5668\uff0c\u4f8b\u5982Vim\uff0c\n <\/div>\n\n$ git config--global core.editor Vim<\/pre>\n<\/code>\n <\/div>\n
\n \u68c0\u67e5\u8bbe\u7f6e\n <\/div>\n\n \u60a8\u53ef\u4ee5\u68c0\u67e5\u914d\u7f6e\u8bbe\u7f6e\uff1b\u60a8\u53ef\u4ee5\u4f7f\u7528 git config--list \u547d\u4ee4\u5217\u51faGit\u6b64\u65f6\u53ef\u4ee5\u627e\u5230\u7684\u6240\u6709\u8bbe\u7f6e\u3002\n <\/div>\n\n$ git config-list<\/pre>\n<\/code>\n <\/div>\n
\n \u6b64\u547d\u4ee4\u5c06\u5217\u51fa\u6240\u6709\u8bbe\u7f6e\u3002\u8bf7\u53c2\u89c1\u4e0b\u9762\u7684\u547d\u4ee4\u884c\u8f93\u51fa\u3002\n <\/div>\n\n \u8f93\u51fa\n <\/div>\n\nHiMaNshU@HiMaNshU-PC MINGW64 ~\/Desktop\n$ git config--list\ncore.symlinks=false\ncore.autocrlf=true\ncore.fscache=true\ncolor.diff=auto\ncolor.status=auto\ncolor.branch=auto\ncolor.interactive=true\nhelp.format=html\nrebase.autosquash=true\nhttp.sslcainfo=C:\/Program Files\/Git\/mingw64\/ssl\/certs\/ca-bundle.crt\nhttp.sslbackend=openssl\ndiff.astextplain.textconv=astextplain\nfilter.lfs.clean=git-lfs clean--%f\nfilter.lfs.smudge=git-lfs smudge--skip--%f\nfilter.lfs.process=git-lfs filter-process--skip\nfilter.lfs.required=true\ncredential.helper=manager\ngui.recentrepo=C:\/Git\nuser.email=dav.himanshudubey481@gmail.com\nuser.name=Himanshu Dubey<\/pre>\n<\/code>\n <\/div>\n
\n \u5f69\u8272\u8f93\u51fa\n <\/div>\n\n \u60a8\u53ef\u4ee5\u81ea\u5b9a\u4e49Git\u8f93\u51fa\u4ee5\u67e5\u770b\u4e2a\u6027\u5316\u7684\u989c\u8272\u4e3b\u9898\u3002 git\u914d\u7f6e\u53ef\u7528\u4e8e\u8bbe\u7f6e\u8fd9\u4e9b\u989c\u8272\u4e3b\u9898\u3002\n <\/div>\n\n Color.ui\n <\/div>\n\n$ Git config-global color.ui true<\/span><\/span><\/pre>\n<\/code>\n <\/div>\n
\n color.ui\u7684\u9ed8\u8ba4\u503c\u8bbe\u7f6e\u4e3aauto\uff0c\u8fd9\u4f1a\u5c06\u989c\u8272\u5e94\u7528\u4e8e\u5373\u65f6\u7ec8\u7aef\u8f93\u51fa\u6d41\u3002\u60a8\u53ef\u4ee5\u5c06\u989c\u8272\u503c\u8bbe\u7f6e\u4e3atrue\uff0cfalse\uff0cauto\u548c\u59cb\u7ec8\u3002\n <\/div>\n Git\u914d\u7f6e\u7ea7\u522b<\/h2>\n\n git config\u547d\u4ee4\u53ef\u4ee5\u63a5\u53d7\u53c2\u6570\u6765\u6307\u5b9a\u914d\u7f6e\u7ea7\u522b\u3002 Git\u914d\u7f6e\u4e2d\u63d0\u4f9b\u4ee5\u4e0b\u914d\u7f6e\u7ea7\u522b\u3002\n <\/div>\n \u672c\u5730<\/span>
\n \u5168\u5c40<\/span>
\n \u7cfb\u7edf<\/span> <\/p>\n\n -\u672c\u5730\n <\/div>\n\n \u5b83\u662fGit\u4e2d\u7684\u9ed8\u8ba4\u7ea7\u522b\u3002\u5982\u679c\u672a\u63d0\u4f9b\u914d\u7f6e\u9009\u9879\uff0cGit config\u5c06\u5199\u5165\u672c\u5730\u7ea7\u522b\u3002\u672c\u5730\u914d\u7f6e\u503c\u4f5c\u4e3a\u6587\u4ef6\u5b58\u50a8\u5728 .git\/config \u76ee\u5f55\u4e2d\u3002\n <\/div>\n\n -\u5168\u5c40\n <\/div>\n\n \u5168\u5c40\u7ea7\u522b\u914d\u7f6e\u662f\u7528\u6237\u7279\u5b9a\u7684\u914d\u7f6e\u3002\u7279\u5b9a\u4e8e\u7528\u6237\u7684\u65b9\u5f0f\uff0c\u5b83\u9002\u7528\u4e8e\u5355\u4e2a\u64cd\u4f5c\u7cfb\u7edf\u7528\u6237\u3002\u5168\u5c40\u914d\u7f6e\u503c\u5b58\u50a8\u5728\u7528\u6237\u7684\u4e3b\u76ee\u5f55\u4e2d\u3002\u5728UNIX\u7cfb\u7edf\u4e0a\u301c\/.gitconfig \u548c C: \\ Users \\
\n <\u7528\u6237\u540d>
\n \\ .gitconfig \u5728Windows\u4e0a\u4f5c\u4e3a\u6587\u4ef6\u683c\u5f0f\u3002
\n <\/\u7528\u6237\u540d>\n <\/div>\n\n -system\n <\/div>\n\n \u7cfb\u7edf\u7ea7\u914d\u7f6e\u4e3a\u5e94\u7528\u4e8e\u6574\u4e2a\u7cfb\u7edf\u3002\u6574\u4e2a\u7cfb\u7edf\u8868\u793a\u64cd\u4f5c\u7cfb\u7edf\u548c\u6240\u6709\u5b58\u50a8\u5e93\u4e0a\u7684\u6240\u6709\u7528\u6237\u3002\u7cfb\u7edf\u7ea7\u914d\u7f6e\u6587\u4ef6\u5b58\u50a8\u5728\u7cfb\u7edf\u76ee\u5f55\u4e4b\u5916\u7684 gitconfig \u6587\u4ef6\u4e2d\u3002\u5728UNIX\u7cfb\u7edf\u4e0a\u4e3a $(\u524d\u7f00)\/etc\/gitconfig \uff0c\u5728Windows\u4e2d\u4e3a C: \\ ProgramData \\ Git \\ config \u3002\n <\/div>\n\n Git\u914d\u7f6e\u5206\u522b\u662f\u672c\u5730\uff0c\u5168\u5c40\u548c\u7cfb\u7edf\u3002\u8fd9\u610f\u5473\u7740\u5f53\u5bfb\u627e\u914d\u7f6e\u503c\u65f6\uff0cGit\u5c06\u5728\u672c\u5730\u7ea7\u522b\u542f\u52a8\u5e76\u5192\u6ce1\u81f3\u7cfb\u7edf\u7ea7\u522b\u3002\n <\/div>\n
\n <\/body>
\n<\/html><\/p>\n","protected":false},"excerpt":{"rendered":"Git\u73af\u5883\u8bbe\u7f6ezh-cn","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[149],"tags":[],"class_list":["post-1613","post","type-post","status-publish","format-standard","hentry","category-gitjc"],"_links":{"self":[{"href":"https:\/\/bianchenghao6.com\/wp-json\/wp\/v2\/posts\/1613"}],"collection":[{"href":"https:\/\/bianchenghao6.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/bianchenghao6.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/bianchenghao6.com\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/bianchenghao6.com\/wp-json\/wp\/v2\/comments?post=1613"}],"version-history":[{"count":0,"href":"https:\/\/bianchenghao6.com\/wp-json\/wp\/v2\/posts\/1613\/revisions"}],"wp:attachment":[{"href":"https:\/\/bianchenghao6.com\/wp-json\/wp\/v2\/media?parent=1613"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/bianchenghao6.com\/wp-json\/wp\/v2\/categories?post=1613"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/bianchenghao6.com\/wp-json\/wp\/v2\/tags?post=1613"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}