{"id":811,"date":"2015-08-18T19:16:59","date_gmt":"2015-08-18T17:16:59","guid":{"rendered":"http:\/\/bos-info.com\/?p=811"},"modified":"2022-08-25T16:52:06","modified_gmt":"2022-08-25T14:52:06","slug":"git","status":"publish","type":"post","link":"https:\/\/bos-info.com\/?p=811","title":{"rendered":"git level0"},"content":{"rendered":"\n<ol><li>\u0414\u043b\u044f \u043f\u043e\u0447\u0430\u0442\u043a\u0443 \u0440\u043e\u0431\u043e\u0442\u0438 \u0432 git \u043d\u0435\u043e\u0431\u0445\u0456\u0434\u043d\u043e \u0437\u0430\u0434\u0430\u0442\u0438 \u0434\u0435\u044f\u043a\u0456 \u043f\u0435\u0440\u0448\u043e\u0447\u0435\u0440\u0433\u043e\u0432\u0456 \u043d\u0430\u043b\u0430\u0448\u0442\u0443\u0432\u0430\u043d\u043d\u044f:<br> <blockquote><p><code>git config --global user.name \"User Name\"<br>git config --global user.email username@example.com<br>git config --global core.editor mcedit<br>git config --global merge.tool mcdiff<br>git config --global color.ui true<br><\/code> \u041f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u0438 \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0438 \u0437\u0430\u043a\u0456\u043d\u0447\u0435\u043d\u044c \u0440\u044f\u0434\u043a\u0456\u0432:<code><br>git config --global core.autocrlf input<br>git config --global core.safecrlf warn<\/code><\/p><\/blockquote> <p>\u0414\u0435 \u0456 \u044f\u043a \u0437\u0431\u0435\u0440\u0456\u0433\u0430\u044e\u0442\u044c\u0441\u044f \u0446\u0456 \u043d\u0430\u043b\u0430\u0448\u0442\u0443\u0432\u0430\u043d\u043d\u044f:<\/p> <ul><li>\/etc\/gitconfig \u043c\u0456\u0441\u0442\u0438\u0442\u044c \u0437\u043d\u0430\u0447\u0435\u043d\u043d\u044f, \u0437\u0430\u0433\u0430\u043b\u044c\u043d\u0456 \u0434\u043b\u044f \u0432\u0441\u0456\u0445 \u043a\u043e\u0440\u0438\u0441\u0442\u0443\u0432\u0430\u0447\u0456\u0432 \u0441\u0438\u0441\u0442\u0435\u043c\u0438 \u0442\u0430 \u0432\u0441\u0456\u0445 \u0440\u0435\u043f\u043e\u0437\u0438\u0442\u043e\u0440\u0456\u044f\u0445. \u0412\u0438\u043a\u043e\u043d\u0443\u044e\u0447\u0438  <em>git config &#8211;system<\/em> \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u0438 \u0447\u0438\u0442\u0430\u044e\u0442\u044c\u0441\u044f \u0456 \u0437\u0431\u0435\u0440\u0456\u0433\u0430\u044e\u0442\u044c\u0441\u044f \u0441\u0430\u043c\u0435 \u0443 \u0446\u0435\u0439 \u0444\u0430\u0439\u043b.<\/li><li>~\/.gitconfig  \u0437\u0431\u0435\u0440\u0456\u0433\u0430\u0454 \u043d\u0430\u043b\u0430\u0448\u0442\u0443\u0432\u0430\u043d\u043d\u044f \u043a\u043e\u043d\u043a\u0440\u0435\u0442\u043d\u043e\u0433\u043e \u043a\u043e\u0440\u0438\u0441\u0442\u0443\u0432\u0430\u0447\u0430. \u0426\u0435\u0439 \u0444\u0430\u0439\u043b \u0432\u0438\u043a\u043e\u0440\u0438\u0441\u0442\u043e\u0432\u0443\u0454\u0442\u044c\u0441\u044f \u043f\u0440\u0438  <em>git config &#8211;global<\/em>.<\/li><li>\u0444\u0430\u0438\u0306\u043b \u0432 \u0442\u0435\u0446\u0456 Git (.git\/config) \u0432 \u0440\u0435\u043f\u043e\u0437\u0438\u0442\u043e\u0440\u0456\u0457 ,\u0434\u0435 \u0432\u0438 \u0437\u043d\u0430\u0445\u043e\u0434\u0438\u0442\u0435\u0441\u044c \u0443 \u043f\u043e\u0442\u043e\u0447\u043d\u0438\u0439 \u043c\u043e\u043c\u0435\u043d\u0442. \u041d\u0430\u043b\u0430\u0448\u0442\u0443\u0432\u0430\u043d\u043d\u044f \u043b\u0438\u0448\u0435 \u0434\u043b\u044f \u043f\u043e\u0442\u043e\u0447\u043d\u043e\u0433\u043e \u0440\u0435\u043f\u043e\u0437\u0438\u0442\u043e\u0440\u0456\u044e, \u0437\u0430 \u0434\u043e\u043f\u043e\u043c\u043e\u0433\u043e\u044e <em>git config &#8211;local<\/em><p>\u041d\u0430\u043b\u0430\u0448\u0442\u0443\u0432\u0430\u043d\u043d\u044f \u043d\u0430 \u043a\u043e\u0436\u043d\u043e\u043c\u0443 \u0440\u0456\u0432\u043d\u0456 \u043f\u0456\u0434\u043c\u0456\u043d\u044f\u044e\u0442\u044c \u043d\u0430\u043b\u0430\u0448\u0442\u0443\u0432\u0430\u043d\u043d\u044f \u0437 \u043f\u043e\u043f\u0435\u0440\u0435\u0434\u043d\u044c\u043e\u0433\u043e \u0440\u0456\u0432\u043d\u044f, \u0442\u043e\u0431\u0442\u043e \u043d\u0430\u043b\u0430\u0448\u0442\u0443\u0432\u0430\u043d\u043d\u044f \u0432  \u0432 .git\/config &#8220;\u0413\u041e\u041b\u041e\u0412\u041d\u0406\u0428\u0415&#8221; \u043d\u0456\u0436 \u0437\u043d\u0430\u0447\u0435\u043d\u043d\u044f \u0432 \u0444\u0430\u0439\u043b\u0456 \/etc\/gitconfig.<\/p> <\/li><\/ul><\/li><li>\u042f\u043a\u0449\u043e \u0443 \u0412\u0430\u0441, \u043f\u0440\u0438 \u043f\u0435\u0440\u0435\u0433\u043b\u044f\u0434\u0456 diff, \u0437\u02bc\u044f\u0432\u043b\u044f\u0454\u0442\u044c\u0441\u044f \u0449\u043e\u0441\u044c \u0442\u0438\u043f\u0443:<br><code>ESC[31m-{ESC[m<br> ESC[31m-    Oid         res = InvalidOid;ESC[m<br> ESC[31m-    Relation    rel;ESC[m<br> ESC[31m-    StringInfo  buf;ESC[m<br> ESC[31m-    char       *storageName = NULL;ESC[m<br> ESC[31m-    int         prefix = 0;ESC[m<br> ESC[31m-ESC[m<\/code><br>\u043d\u0435\u043e\u0431\u0445\u0456\u0434\u043d\u043e : <blockquote><p><code>git config --global core.pager \"less -r\"<\/code><\/p><\/blockquote> <\/li><li>\u041f\u043e\u0434\u0438\u0432\u0438\u0442\u0438\u0441\u044c \u043d\u0430\u043b\u0430\u0448\u0443\u0442\u0432\u0430\u043d\u043d\u044f:<br> <blockquote><p><code>git config --list<\/code><\/p><\/blockquote> <\/li><\/ol>\n\n\n\n<p>\u042f\u043a\u0449\u043e \u043c\u0438 \u0431\u0430\u0436\u0430\u0454\u043c\u043e \u0432\u0438\u043a\u043b\u044e\u0447\u0438\u0442\u0438 \u0442\u0435\u043a\u0443 testlib, \u0432\u0441\u0456 \u0444\u0430\u0439\u043b\u0438 mp4 \u0442\u0430 readme.doc \u0437 \u043b\u043e\u043a\u0430\u043b\u044c\u043d\u043e\u0433\u043e \u0440\u0435\u043f\u043e\u0437\u0438\u0442\u043e\u0440\u0456\u044e, \u043f\u0440\u0430\u0432\u0438\u043c\u043e \u0444\u0430\u0439\u043b<br>.git\/info\/exclude:<br>testlib\/<br>*.mp4<br>readme.doc<br>\u042f\u043a\u0449\u043e \u043c\u0438 \u0431\u0430\u0436\u0430\u0454\u043c\u043e \u0432\u0438\u043a\u043b\u044e\u0447\u0438\u0442\u0438 \u043b\u043e\u0433 \u0444\u0430\u0439\u043b\u0438 \u0437 \u0442\u0435\u043a\u0438  logs \u0432 \u0443\u0441\u0456\u0445 \u0440\u0435\u043f\u043e\u0437\u0438\u0442\u043e\u0440\u0456\u044f\u0445, \u043f\u0440\u0430\u0432\u0438\u043c\u043e \u0444\u0430\u0439\u043b<br>.gitignore:<br>logs\/*.log<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u0414\u043b\u044f \u043f\u043e\u0447\u0430\u0442\u043a\u0443 \u0440\u043e\u0431\u043e\u0442\u0438 \u0432 git \u043d\u0435\u043e\u0431\u0445\u0456\u0434\u043d\u043e \u0437\u0430\u0434\u0430\u0442\u0438 \u0434\u0435\u044f\u043a\u0456 \u043f\u0435\u0440\u0448\u043e\u0447\u0435\u0440\u0433\u043e\u0432\u0456 \u043d\u0430\u043b\u0430\u0448\u0442\u0443\u0432\u0430\u043d\u043d\u044f: git config &#8211;global user.name &#8220;User Name&#8221;git config &#8211;global user.email username@example.comgit config &#8211;global core.editor mceditgit config &#8211;global merge.tool mcdiffgit config &#8211;global color.ui true \u041f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u0438 \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0438 \u0437\u0430\u043a\u0456\u043d\u0447\u0435\u043d\u044c \u0440\u044f\u0434\u043a\u0456\u0432:git config &#8211;global core.autocrlf inputgit &hellip; <a href=\"https:\/\/bos-info.com\/?p=811\">\u041f\u0440\u043e\u0434\u043e\u0432\u0436\u0438\u0442\u0438 \u0447\u0438\u0442\u0430\u043d\u043d\u044f <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[9],"tags":[],"_links":{"self":[{"href":"https:\/\/bos-info.com\/index.php?rest_route=\/wp\/v2\/posts\/811"}],"collection":[{"href":"https:\/\/bos-info.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/bos-info.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/bos-info.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/bos-info.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=811"}],"version-history":[{"count":12,"href":"https:\/\/bos-info.com\/index.php?rest_route=\/wp\/v2\/posts\/811\/revisions"}],"predecessor-version":[{"id":1036,"href":"https:\/\/bos-info.com\/index.php?rest_route=\/wp\/v2\/posts\/811\/revisions\/1036"}],"wp:attachment":[{"href":"https:\/\/bos-info.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=811"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/bos-info.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=811"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/bos-info.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=811"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}