{"id":368405,"date":"2024-05-21T03:42:00","date_gmt":"2024-05-21T03:42:00","guid":{"rendered":"http:\/\/savepearlharbor.com\/?p=368405"},"modified":"-0001-11-30T00:00:00","modified_gmt":"-0001-11-29T21:00:00","slug":"","status":"publish","type":"post","link":"https:\/\/savepearlharbor.com\/?p=368405","title":{"rendered":"<span>\u0418\u0442\u0430\u043a, \u0432\u044b \u0434\u0443\u043c\u0430\u0435\u0442\u0435, \u0447\u0442\u043e \u0437\u043d\u0430\u0435\u0442\u0435 Git? \u0427\u0430\u0441\u0442\u044c \u0432\u0442\u043e\u0440\u0430\u044f: \u043d\u043e\u0432\u043e\u0435 \u0432 Git<\/span>"},"content":{"rendered":"<div><!--[--><!--]--><\/div>\n<div id=\"post-content-body\">\n<div>\n<div class=\"article-formatted-body article-formatted-body article-formatted-body_version-1\">\n<div xmlns=\"http:\/\/www.w3.org\/1999\/xhtml\">\n<p><em>\u0410\u0432\u0442\u043e\u0440 \u043e\u0440\u0438\u0433\u0438\u043d\u0430\u043b\u0430 \u0421\u043a\u043e\u0442\u0442 \u0427\u0430\u043a\u043e\u043d\u00a0\u2014 \u0441\u043e\u043e\u0441\u043d\u043e\u0432\u0430\u0442\u0435\u043b\u044c GitHub \u0438\u00a0\u043e\u0441\u043d\u043e\u0432\u0430\u0442\u0435\u043b\u044c \u043d\u043e\u0432\u043e\u0433\u043e \u043a\u043b\u0438\u0435\u043d\u0442\u0430 GitButler. \u042d\u0442\u043e\u0442 \u043a\u043b\u0438\u0435\u043d\u0442 \u0441\u0442\u0430\u0432\u0438\u0442 \u0432\u043e\u00a0\u0433\u043b\u0430\u0432\u0443 \u0443\u0433\u043b\u0430 \u0440\u0430\u0431\u043e\u0447\u0438\u0439 \u043f\u0440\u043e\u0446\u0435\u0441\u0441 \u0438\u00a0\u0443\u0434\u043e\u0431\u0441\u0442\u0432\u043e \u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u043a\u0438, \u0432\u00a0\u0442\u043e\u043c \u0447\u0438\u0441\u043b\u0435 \u043a\u043e\u0434-\u0440\u0435\u0432\u044c\u044e, \u0438\u00a0\u043d\u0435\u00a0\u044f\u0432\u043b\u044f\u0435\u0442\u0441\u044f \u043f\u0440\u043e\u0441\u0442\u043e \u043e\u0447\u0435\u0440\u0435\u0434\u043d\u043e\u0439 \u043e\u0431\u0451\u0440\u0442\u043a\u043e\u0439 \u043d\u0430\u0434 CLI git.<\/em><\/p>\n<p>  <\/p>\n<p>\u0414\u0430\u043b\u0435\u0435 \u0432\u00a0\u043d\u0430\u0448\u0435\u0439 \u0441\u0435\u0440\u0438\u0438 \u043f\u043e\u0441\u0442\u043e\u0432 <a href=\"https:\/\/blog.gitbutler.com\/git-tips-and-tricks\/\" rel=\"nofollow noopener noreferrer\">\u0438\u0437 \u0442\u0440\u0451\u0445 \u0447\u0430\u0441\u0442\u0435\u0439<\/a> \u0443\u00a0\u043d\u0430\u0441 \u043d\u043e\u0432\u044b\u0435 \u0444\u0438\u0447\u0438! \u0417\u0434\u0435\u0441\u044c \u044f\u00a0\u0440\u0430\u0441\u0441\u043a\u0430\u0436\u0443 \u043f\u0440\u043e \u043f\u044f\u0442\u044c \u043e\u0442\u043d\u043e\u0441\u0438\u0442\u0435\u043b\u044c\u043d\u043e \u043d\u043e\u0432\u044b\u0445 \u0432\u0435\u0449\u0435\u0439 \u0432\u00a0git, \u043e\u00a0\u043a\u043e\u0442\u043e\u0440\u044b\u0445 \u0432\u044b\u00a0\u043c\u043e\u0433\u043b\u0438 \u043d\u0435\u00a0\u0441\u043b\u044b\u0448\u0430\u0442\u044c, \u043f\u043e\u0442\u043e\u043c\u0443 \u0447\u0442\u043e <em>\u043d\u0443 \u043f\u043e\u0447\u0435\u043c\u0443 \u0432\u044b? <\/em><\/p>\n<p>  <\/p>\n<p>\u041c\u044b\u00a0\u0432\u0437\u0433\u043b\u044f\u043d\u0435\u043c \u043d\u0430:<\/p>\n<p>  <\/p>\n<ul>\n<li><a href=\"https:\/\/habr.com\/ru\/articles\/794252\/#one\">\u0428\u0442\u0443\u043a\u0438 \u0441\u00a0git branch<\/a>.<\/li>\n<li><a href=\"https:\/\/habr.com\/ru\/articles\/794252\/#two\">\u041f\u0440\u0438\u043d\u0443\u0434\u0438\u0442\u0435\u043b\u044c\u043d\u044b\u0439 \u0431\u0435\u0437\u043e\u043f\u0430\u0441\u043d\u044b\u0439 \u043f\u0443\u0448<\/a>.<\/li>\n<li><a href=\"https:\/\/habr.com\/ru\/articles\/794252\/#three\">\u041f\u043e\u0434\u043f\u0438\u0441\u044b\u0432\u0430\u043d\u0438\u0435 \u043a\u043e\u043c\u043c\u0438\u0442\u043e\u0432 \u043a\u043b\u044e\u0447\u043e\u043c SSH<\/a>.<\/li>\n<li><a href=\"https:\/\/habr.com\/ru\/articles\/794252\/#four\">\u041f\u043e\u0434\u043f\u0438\u0441\u044b\u0432\u0430\u043d\u0438\u0435 \u043f\u0443\u0448\u0435\u0439<\/a>.<\/li>\n<li><a href=\"https:\/\/habr.com\/ru\/articles\/794252\/#five\">\u041e\u0431\u0441\u043b\u0443\u0436\u0438\u0432\u0430\u043d\u0438\u0435 Git<\/a>.<a name=\"habracut\"><\/a><\/li>\n<\/ul>\n<p>  <\/p>\n<h2 id=\"shtuki-sgit-branchanchoroneanchor\">\u0428\u0442\u0443\u043a\u0438 \u0441\u00a0<code>git branch<\/code><a name=\"one\"><\/a><\/h2>\n<p>  <\/p>\n<p>\u042d\u0442\u043e \u0434\u043e\u0432\u043e\u043b\u044c\u043d\u043e \u0432\u0442\u043e\u0440\u0438\u0447\u043d\u043e, \u043d\u043e\u00a0\u043e\u0434\u043d\u0430 \u0432\u0435\u0449\u044c\u00a0\u0432\u00a0git \u0432\u0441\u0435\u0433\u0434\u0430 \u0436\u0443\u0436\u0436\u0430\u043b\u0430 \u0443\u00a0\u043c\u0435\u043d\u044f \u043d\u0430\u0434 \u0443\u0445\u043e\u043c. \u042f\u00a0\u0447\u0430\u0441\u0442\u043e\u00a0\u0437\u0430\u043f\u0443\u0441\u043a\u0430\u044e <code>git branch<\/code>, \u0447\u0442\u043e\u0431\u044b \u043f\u043e\u0441\u043c\u043e\u0442\u0440\u0435\u0442\u044c, \u043a\u0430\u043a\u0438\u0435 \u0432\u043e\u043e\u0431\u0449\u0435 \u0443\u00a0\u043c\u0435\u043d\u044f \u0435\u0441\u0442\u044c \u0432\u0435\u0442\u043a\u0438, \u043d\u043e\u00a0\u043f\u043e\u0440\u044f\u0434\u043e\u043a \u0443\u00a0\u043d\u0438\u0445 \u0433\u043b\u0443\u043f\u0435\u0439\u0448\u0438\u0439 \u0438\u0437\u00a0\u0432\u043e\u0437\u043c\u043e\u0436\u043d\u044b\u0445 (\u0430\u043b\u0444\u0430\u0432\u0438\u0442\u043d\u044b\u0439), \u0430\u00a0\u0447\u0435\u0440\u0435\u0437 \u0432\u0440\u0435\u043c\u044f \u0438\u0445\u00a0\u0441\u0442\u0430\u043d\u0435\u0442 \u043c\u0438\u043b\u043b\u0438\u043e\u043d.<\/p>\n<p>  <\/p>\n<p>\u0412\u00a0\u043a\u0430\u043a\u043e\u0439-\u0442\u043e \u043c\u043e\u043c\u0435\u043d\u0442 \u044f\u00a0\u043d\u0430\u0447\u0430\u043b \u0438\u043c\u0435\u043d\u043e\u0432\u0430\u0442\u044c \u0432\u0435\u0442\u043a\u0438 \u0442\u0430\u043a, \u0447\u0442\u043e\u0431\u044b \u043e\u0442\u0447\u0430\u0441\u0442\u0438 \u0443\u043f\u0440\u0430\u0432\u0438\u0442\u044c\u0441\u044f \u0441\u00a0\u044d\u0442\u0438\u043c. \u041a\u0430\u0436\u0434\u0430\u044f \u0432\u0435\u0442\u043a\u0430 \u043e\u043a\u0430\u0437\u044b\u0432\u0430\u043b\u0430\u0441\u044c \u0447\u0435\u043c-\u0442\u043e \u0442\u0438\u043f\u0430 <code>sc-0831-my-thing<\/code>, \u043e\u0437\u043d\u0430\u0447\u0430\u044f, \u0447\u0442\u043e \u044d\u0442\u043e \u0431\u044b\u043b\u0430 \u00ab\u043c\u043e\u044f \u0448\u0442\u0443\u043a\u043e\u0432\u0438\u043d\u0430\u00bb, \u043e\u043d\u0430 \u0441\u043e\u0437\u0434\u0430\u043d\u0430 31\u00a0\u0430\u0432\u0433\u0443\u0441\u0442\u0430, <code>sc<\/code>\u00a0\u2014 \u043c\u043e\u0438 \u0438\u043d\u0438\u0446\u0438\u0430\u043b\u044b, \u0447\u0442\u043e\u0431\u044b \u043c\u043e\u0436\u043d\u043e \u0431\u044b\u043b\u043e \u0433\u0440\u0443\u043f\u043f\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u043f\u043e\u00a0\u0442\u043e\u043c\u0443, \u0433\u0434\u0435 \u0447\u044c\u044f \u0432\u0435\u0442\u043a\u0430. \u041c\u043d\u043e\u0433\u043e \u0434\u0443\u0440\u0430\u0446\u043a\u0438\u0445 \u043c\u0435\u0442\u0430\u0434\u0430\u043d\u043d\u044b\u0445 \u0440\u0430\u0434\u0438 \u043f\u043e\u043f\u044b\u0442\u043a\u0438 \u0437\u0430\u0437\u0443\u0431\u0440\u0438\u0442\u044c \u0432\u0435\u0442\u043a\u0438 \u043f\u0440\u043e\u0441\u0442\u043e \u043f\u043e\u0442\u043e\u043c\u0443, \u0447\u0442\u043e \u043e\u043d\u0438 \u0442\u0430\u043a \u043f\u0435\u0440\u0435\u0447\u0438\u0441\u043b\u0435\u043d\u044b.<\/p>\n<p>  <\/p>\n<p>\u041d\u043e\u00a0\u0442\u0435\u043f\u0435\u0440\u044c \u043c\u044b\u00a0\u043c\u043e\u0436\u0435\u043c \u043f\u043e\u043f\u0440\u043e\u0441\u0438\u0442\u044c git \u043f\u043e\u043c\u043e\u0447\u044c: \u0441\u043e\u0440\u0442\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u0432\u0435\u0442\u043a\u0438 \u043f\u043e\u00a0<code>objectsize<\/code>, <code>authordate<\/code>, <code>committerdate<\/code>, <code>creatordate<\/code>, \u0438\u043b\u0438 <code>taggerdate<\/code> \u043e\u043f\u0446\u0438\u0435\u0439 <code>--sort<\/code>, \u0438\u043b\u0438 \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u0438\u0442\u044c \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435 \u043e\u043f\u0446\u0438\u0438 \u043f\u043e\u00a0\u0443\u043c\u043e\u043b\u0447\u0430\u043d\u0438\u044e \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u043e\u043c \u043a\u043e\u043d\u0444\u0438\u0433\u0443\u0440\u0430\u0446\u0438\u0438 <code>branch.sort<\/code>.<\/p>\n<p>  <\/p>\n<p>\u0422\u0430\u043a, \u0434\u043b\u044f \u043f\u0440\u0438\u043c\u0435\u0440\u0430, \u0435\u0441\u043b\u0438 \u044f\u00a0\u0445\u043e\u0447\u0443 \u0441\u043e\u0440\u0442\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u043f\u043e\u00a0\u0443\u0431\u044b\u0432\u0430\u043d\u0438\u044e \u0434\u0430\u0442\u044b \u043f\u043e\u0441\u043b\u0435\u0434\u043d\u0435\u0433\u043e \u043a\u043e\u043c\u043c\u0438\u0442\u0430, \u0442\u043e\u00a0\u043c\u043e\u0433\u0443 \u0432\u044b\u043f\u043e\u043b\u043d\u0438\u0442\u044c:<\/p>\n<p>  <\/p>\n<pre><code class=\"bash\">git config --global branch.sort -committerdate<\/code><\/pre>\n<p>  <\/p>\n<p>\u0418\u00a0\u0442\u0435\u043f\u0435\u0440\u044c \u043f\u043e\u00a0\u0443\u043c\u043e\u043b\u0447\u0430\u043d\u0438\u044e \u0432\u00a0\u0441\u0430\u043c\u043e\u043c \u0432\u0435\u0440\u0445\u0443 \u0431\u0443\u0434\u0435\u0442 \u043f\u043e\u043a\u0430\u0437\u0430\u043d\u0430 \u0432\u0435\u0442\u043a\u0430, \u0432\u00a0\u043a\u043e\u0442\u043e\u0440\u0443\u044e \u044f\u00a0\u043a\u043e\u043c\u043c\u0438\u0442\u0438\u043b \u043f\u043e\u0441\u043b\u0435\u0434\u043d\u0438\u0439 \u0440\u0430\u0437.<\/p>\n<p>  <\/p>\n<blockquote><p>\u0423\u00a0<code>-commiterdate<\/code> \u043e\u0434\u043d\u0430 (-), \u0430\u00a0<strong>\u043d\u0435<\/strong> \u0434\u0432\u0435 (&#8212;) \u0447\u0451\u0440\u0442\u043e\u0447\u043a\u0438. \u042d\u0442\u043e \u043f\u0440\u043e\u0442\u0438\u0432\u043e\u043f\u043e\u043b\u043e\u0436\u043d\u043e\u0435 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435. \u042f\u00a0\u0432\u0438\u0434\u0435\u043b, \u043a\u0430\u043a \u043b\u044e\u0434\u0438 \u043f\u0443\u0442\u0430\u043b\u0438\u0441\u044c \u0438\u00a0\u0447\u0442\u043e-\u043d\u0438\u0431\u0443\u0434\u044c \u043b\u043e\u043c\u0430\u043b\u043e\u0441\u044c.<\/p><\/blockquote>\n<p>\u041a\u043e\u0433\u0434\u0430 \u0443\u00a0\u043c\u0435\u043d\u044f \u043a\u0443\u0447\u0430 \u0432\u0435\u0442\u043e\u043a, \u043d\u0430\u00a0\u043e\u0434\u0438\u043d \u044d\u043a\u0440\u0430\u043d \u043e\u043d\u0438 \u043d\u0435\u00a0\u043f\u043e\u043c\u0435\u0449\u0430\u044e\u0442\u0441\u044f. \u0413\u0440\u0443\u0441\u0442\u043d\u043e. \u041d\u043e\u00a0\u0442\u0435\u043f\u0435\u0440\u044c Git \u0443\u043c\u0435\u0435\u0442 \u0431\u0440\u0430\u0442\u044c \u0441\u043f\u0438\u0441\u043e\u043a \u0432\u0435\u0442\u0432\u0435\u0439, \u043f\u044b\u0442\u0430\u044f\u0441\u044c \u0440\u0430\u0437\u0434\u0435\u043b\u0438\u0442\u044c \u0435\u0433\u043e\u00a0\u043d\u0430\u00a0\u043a\u043e\u043b\u043e\u043d\u043a\u0438, \u0447\u0442\u043e\u0431\u044b \u043b\u0443\u0447\u0448\u0435 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u043f\u0440\u043e\u0441\u0442\u0440\u0430\u043d\u0441\u0442\u0432\u043e \u044d\u043a\u0440\u0430\u043d\u0430. \u0412\u043e\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c\u0441\u044f \u044d\u0442\u0438\u043c \u043c\u043e\u0436\u043d\u043e \u0447\u0435\u0440\u0435\u0437 \u043d\u043e\u0432\u0443\u044e \u043e\u043f\u0446\u0438\u044e <code>--column<\/code>, \u0438\u043b\u0438 \u0447\u0435\u0440\u0435\u0437 \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0443 <code>column.ui<\/code>.<\/p>\n<p>  <\/p>\n<p>\u041f\u0440\u043e\u0432\u0435\u0440\u0438\u043c:<\/p>\n<p>  <\/p>\n<p><img decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w1560\/getpro\/habr\/post_images\/838\/2fa\/a27\/8382faa27db58d5e52f50a323fff0343.png\" data-src=\"https:\/\/habrastorage.org\/getpro\/habr\/post_images\/838\/2fa\/a27\/8382faa27db58d5e52f50a323fff0343.png\"\/><br \/>  <em>\u041f\u0440\u0438\u044f\u0442\u043d\u0430\u044f \u0441\u043e\u0440\u0442\u0438\u0440\u043e\u0432\u043a\u0430 \u0432\u044b\u0432\u043e\u0434\u0430 \u043c\u043e\u0438\u0445 \u0432\u0435\u0442\u043e\u043a \u043f\u043e\u00a0\u0441\u0442\u043e\u043b\u0431\u0446\u0430\u043c<\/em><\/p>\n<p>  <\/p>\n<p>\u0415\u0449\u0451 \u043a\u043e\u0435-\u0447\u0442\u043e \u0437\u0430\u0431\u0430\u0432\u043d\u043e\u0435. \u0412\u00a0Git \u0440\u0435\u0430\u043b\u0438\u0437\u043e\u0432\u0430\u043b\u0438 \u0442\u0435\u0440\u043c\u0438\u043d\u0430\u043b\u044c\u043d\u0443\u044e \u043a\u043e\u043c\u0430\u043d\u0434\u0443 \u043f\u0440\u0435\u043e\u0431\u0440\u0430\u0437\u043e\u0432\u0430\u043d\u0438\u044f \u0441\u043f\u0438\u0441\u043a\u0430 \u0432\u00a0\u0441\u0442\u043e\u043b\u0431\u0446\u044b, \u043a\u043e\u0442\u043e\u0440\u0430\u044f \u0441\u043e\u0440\u0442\u0438\u0440\u0443\u0435\u0442 \u0447\u0442\u043e-\u043d\u0438\u0431\u0443\u0434\u044c \u0438\u0437\u00a0Git, \u044d\u0442\u0430 \u043a\u043e\u043c\u0430\u043d\u0434\u0430 \u043d\u0430\u0437\u044b\u0432\u0430\u0435\u0442\u0441\u044f <code>git column<\/code>:<\/p>\n<p>  <\/p>\n<p><img decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w1560\/getpro\/habr\/post_images\/90d\/015\/d4a\/90d015d4afc4646578014a923a93080e.png\" data-src=\"https:\/\/habrastorage.org\/getpro\/habr\/post_images\/90d\/015\/d4a\/90d015d4afc4646578014a923a93080e.png\"\/><\/p>\n<p>  <\/p>\n<p>\u041d\u0430\u00a0\u0432\u0441\u044f\u043a\u0438\u0439 \u0441\u043b\u0443\u0447\u0430\u0439 \u043f\u0440\u0435\u043e\u0431\u0440\u0430\u0437\u0443\u0439\u0442\u0435\u00a0\u0441\u0442\u043e\u043b\u0431\u0446\u044b \u0432\u043e\u00a0\u0447\u0442\u043e-\u0442\u043e \u0435\u0449\u0451, \u043d\u0435\u00a0\u0441\u0432\u044f\u0437\u0430\u043d\u043d\u043e\u0435 \u0441\u00a0Git.<\/p>\n<p>  <\/p>\n<h2 id=\"prinuditelnyy-bezopasnyy-pushanchortwoanchor\">\u041f\u0440\u0438\u043d\u0443\u0434\u0438\u0442\u0435\u043b\u044c\u043d\u044b\u0439 \u0431\u0435\u0437\u043e\u043f\u0430\u0441\u043d\u044b\u0439 \u043f\u0443\u0448<a name=\"two\"><\/a><\/h2>\n<p>  <\/p>\n<p>\u0421\u043b\u0435\u0434\u0443\u044e\u0449\u0430\u044f \u0438\u043d\u0442\u0435\u0440\u0435\u0441\u043d\u0430\u044f \u0432\u0435\u0449\u044c, \u043a\u043e\u0442\u043e\u0440\u0443\u044e \u0434\u043e\u0431\u0430\u0432\u0438\u043b\u0438 \u0432\u00a0git \u0441\u043e\u0432\u0441\u0435\u043c \u043d\u0435\u0434\u0430\u0432\u043d\u043e,\u00a0\u2014 \u0433\u043e\u0440\u0430\u0437\u0434\u043e \u0431\u043e\u043b\u0435\u0435 \u0431\u0435\u0437\u043e\u043f\u0430\u0441\u043d\u044b\u0439 \u0441\u043f\u043e\u0441\u043e\u0431 \u0434\u0435\u043b\u0430\u0442\u044c \u043f\u0440\u0438\u043d\u0443\u0434\u0438\u0442\u0435\u043b\u044c\u043d\u044b\u0435 \u043f\u0443\u0448\u0438. \u0412\u00a0\u043e\u0441\u043d\u043e\u0432\u043d\u043e\u043c \u0431\u043e\u043b\u044c\u0448\u0438\u043d\u0441\u0442\u0432\u043e \u0438\u0437\u00a0\u043d\u0430\u0441 \u043d\u0435\u00a0\u0434\u0435\u043b\u0430\u0435\u0442 \u0438\u0445, \u043f\u043e\u0441\u043a\u043e\u043b\u044c\u043a\u0443 \u0432\u0441\u0435\u0433\u0434\u0430 \u0435\u0441\u0442\u044c \u0448\u0430\u043d\u0441 \u043f\u0435\u0440\u0435\u043f\u0438\u0441\u0430\u0442\u044c \u0447\u044c\u0438-\u0442\u043e \u043a\u043e\u043c\u043c\u0438\u0442\u044b. \u0414\u0430\u0432\u0430\u0439\u0442\u0435 \u043f\u0440\u0435\u0434\u0441\u0442\u0430\u0432\u0438\u043c \u0441\u0438\u0442\u0443\u0430\u0446\u0438\u044e:<\/p>\n<p>  <\/p>\n<ul>\n<li>\u0412\u044b\u00a0\u0434\u0435\u043b\u0430\u0435\u0442\u0435 \u043a\u043e\u043c\u043c\u0438\u0442 \u0438\u00a0\u043f\u0443\u0448 \u0447\u0435\u0433\u043e-\u043d\u0438\u0431\u0443\u0434\u044c \u043d\u0430\u00a0GitHub.  <\/li>\n<li>\u041a\u0442\u043e-\u0442\u043e \u0434\u0440\u0443\u0433\u043e\u0439 \u0432\u044b\u0442\u044f\u0433\u0438\u0432\u0430\u0435\u0442 \u0432\u0430\u0448\u0443 \u0440\u0430\u0431\u043e\u0442\u0443, \u043a\u043e\u043c\u043c\u0438\u0442\u0438\u0442 \u0438\u00a0\u043f\u0443\u0448\u0438\u0442 \u043e\u0431\u0440\u0430\u0442\u043d\u043e.  <\/li>\n<li>\u0412\u044b\u00a0\u043c\u0435\u043d\u044f\u0435\u0442\u0435 \u043a\u043e\u043c\u043c\u0438\u0442, \u043f\u0435\u0440\u0435\u043f\u0438\u0441\u044b\u0432\u0430\u0435\u0442\u0435 \u0438\u0441\u0442\u043e\u0440\u0438\u044e \u0438\u00a0\u043f\u0443\u0448\u0438\u0442\u0435 \u043f\u0440\u0438\u043d\u0443\u0434\u0438\u0442\u0435\u043b\u044c\u043d\u043e, \u043d\u0435\u00a0\u0437\u043d\u0430\u044f, \u0447\u0442\u043e \u0441\u00a0\u0432\u0430\u0448\u0438\u043c \u043a\u043e\u043c\u043c\u0438\u0442\u043e\u043c \u0440\u0430\u0431\u043e\u0442\u0430\u043b \u043a\u0442\u043e-\u0442\u043e \u0434\u0440\u0443\u0433\u043e\u0439.  <\/li>\n<li>\u0422\u043e\u0447\u043d\u043e \u0443\u0434\u0430\u043b\u044f\u0435\u0442\u0441\u044f \u0442\u043e, \u0447\u0442\u043e \u0441\u0434\u0435\u043b\u0430\u043b \u0434\u0440\u0443\u0433\u043e\u0439 \u0447\u0435\u043b\u043e\u0432\u0435\u043a.<\/li>\n<\/ul>\n<p>  <\/p>\n<p>\u0427\u0442\u043e \u0434\u0435\u0439\u0441\u0442\u0432\u0438\u0442\u0435\u043b\u044c\u043d\u043e \u043d\u0443\u0436\u043d\u043e \u0441\u0434\u0435\u043b\u0430\u0442\u044c, \u0442\u0430\u043a \u044d\u0442\u043e \u043f\u0440\u043e\u0432\u0435\u0440\u0438\u0442\u044c, \u043d\u0435\u00a0\u043f\u0443\u0448\u0438\u043b\u00a0\u043b\u0438 \u043a\u0442\u043e-\u0442\u043e \u0434\u0440\u0443\u0433\u043e\u0439, \u0438\u00a0\u043f\u0443\u0448\u0438\u0442\u044c \u043f\u0440\u0438\u043d\u0443\u0434\u0438\u0442\u0435\u043b\u044c\u043d\u043e, \u0442\u043e\u043b\u044c\u043a\u043e \u0435\u0441\u043b\u0438 \u043e\u0442\u0432\u0435\u0442\u00a0\u2014 \u00ab\u043d\u0435\u0442\u00bb. \u041e\u0434\u043d\u0430\u043a\u043e \u0437\u0434\u0435\u0441\u044c \u0432\u0441\u0435\u0433\u0434\u0430 \u0435\u0441\u0442\u044c \u0447\u0442\u043e-\u0442\u043e \u0432\u0440\u043e\u0434\u0435 \u0441\u043e\u0441\u0442\u043e\u044f\u043d\u0438\u044f \u0433\u043e\u043d\u043a\u0438: \u0434\u0430\u0436\u0435 \u0435\u0441\u043b\u0438 \u0432\u044b\u00a0\u0441\u043d\u0430\u0447\u0430\u043b\u0430 \u0441\u0434\u0435\u043b\u0430\u0435\u0442\u0435 \u043f\u0440\u043e\u0432\u0435\u0440\u043a\u0443, \u0430\u00a0\u0437\u0430\u0442\u0435\u043c \u0432\u0430\u043c \u043f\u0440\u0438\u0434\u0451\u0442\u0441\u044f \u043f\u0443\u0448\u0438\u0442\u044c, \u0437\u0430\u00a0\u044d\u0442\u043e \u0432\u0440\u0435\u043c\u044f \u0438\u0437\u00a0\u0434\u0440\u0443\u0433\u043e\u0433\u043e \u043c\u0435\u0441\u0442\u0430 \u043c\u043e\u0436\u0435\u0442 \u043f\u0440\u0438\u043b\u0435\u0442\u0435\u0442\u044c \u0447\u0442\u043e-\u043d\u0438\u0431\u0443\u0434\u044c\u00a0\u0435\u0449\u0451. \u0422\u0430\u043a \u0447\u0442\u043e \u0432\u00a0Git \u0434\u043e\u043f\u0438\u0441\u0430\u043b\u0438 \u043d\u043e\u0432\u0443\u044e \u043e\u043f\u0446\u0438\u044e \u043f\u0440\u0438\u043d\u0443\u0434\u0438\u0442\u0435\u043b\u044c\u043d\u043e\u0433\u043e \u043f\u0443\u0448\u0430\u00a0\u2014 <code>--force-with-lease<\/code>, \u043a\u043e\u0442\u043e\u0440\u0430\u044f \u043f\u0440\u043e\u0432\u0435\u0440\u0438\u0442, \u043d\u0430\u0445\u043e\u0434\u0438\u0442\u0441\u044f\u00a0\u043b\u0438 \u043d\u0430\u00a0\u0441\u0435\u0440\u0432\u0435\u0440\u0435 \u0442\u043e, \u0447\u0442\u043e \u0432\u044b\u00a0\u0437\u0430\u043f\u0443\u0448\u0438\u043b\u0438 \u0432\u00a0\u043f\u043e\u0441\u043b\u0435\u0434\u043d\u0438\u0439 \u0440\u0430\u0437, \u0438\u00a0\u0442\u043e\u043b\u044c\u043a\u043e \u043f\u043e\u0441\u043b\u0435 \u044d\u0442\u043e\u0433\u043e \u043e\u0431\u043d\u043e\u0432\u0438\u0442 \u0432\u0435\u0442\u043a\u0443.<\/p>\n<p>  <\/p>\n<p><img decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w1560\/getpro\/habr\/post_images\/7d6\/b56\/3bc\/7d6b563bcfdd1890029ee61ed225180b.png\" data-src=\"https:\/\/habrastorage.org\/getpro\/habr\/post_images\/7d6\/b56\/3bc\/7d6b563bcfdd1890029ee61ed225180b.png\"\/><br \/>  <em>\u041d\u0435\u0443\u0434\u0430\u0432\u0448\u0438\u0439\u0441\u044f <code>push --force-with-lease<\/code><\/em><\/p>\n<p>  <\/p>\n<p>\u0415\u0441\u043b\u0438 \u043a\u0442\u043e-\u043d\u0438\u0431\u0443\u0434\u044c \u043e\u0431\u043d\u043e\u0432\u0438\u0442 \u0441\u0441\u044b\u043b\u043a\u0443 \u043d\u0430\u00a0\u0443\u0434\u0430\u043b\u0451\u043d\u043d\u043e\u043c \u0441\u0435\u0440\u0432\u0435\u0440\u0435 (\u043f\u043e\u00a0\u0445\u043e\u0434\u0443 \u0434\u0435\u043b\u0430), \u0442\u043e\u00a0\u043f\u0443\u0448 \u0437\u0430\u0432\u0435\u0440\u0448\u0438\u0442\u0441\u044f \u043e\u0448\u0438\u0431\u043a\u043e\u0439 <code>stale info<\/code>. \u0415\u0441\u043b\u0438 \u0432\u044b\u00a0\u0447\u0430\u0441\u0442\u043e \u0434\u0435\u043b\u0430\u0435\u0442\u0435 \u043f\u0440\u0430\u0432\u043a\u0438 \u043a\u043e\u043c\u043c\u0438\u0442\u043e\u0432 \u0438\u00a0\u043f\u0435\u0440\u0435\u0431\u0430\u0437\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u0435, \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e, \u0441\u0442\u043e\u0438\u0442 \u043d\u0430\u043f\u0438\u0441\u0430\u0442\u044c \u043a\u043e\u0440\u043e\u0442\u043a\u0438\u0439 \u0430\u043b\u0438\u0430\u0441, \u0432\u0435\u0434\u044c \u044d\u0442\u043e \u043f\u043e\u0447\u0442\u0438 <em>\u0432\u0441\u0435\u0433\u0434\u0430<\/em> \u043b\u0443\u0447\u0448\u0435, \u0447\u0435\u043c <code>--force<\/code>:<\/p>\n<p>  <\/p>\n<pre><code class=\"bash\">git config --global alias.fpush push --force-with-lease<\/code><\/pre>\n<p>  <\/p>\n<p>\u0414\u0430\u00a0\u043f\u0440\u0435\u0431\u0443\u0434\u0435\u0442 \u0441\u00a0\u0432\u0430\u043c\u0438 force.<\/p>\n<p>  <\/p>\n<h2 id=\"podpisyvanie-kommitov-klyuchom-sshanchorthreeanchor\">\u041f\u043e\u0434\u043f\u0438\u0441\u044b\u0432\u0430\u043d\u0438\u0435 \u043a\u043e\u043c\u043c\u0438\u0442\u043e\u0432 \u043a\u043b\u044e\u0447\u043e\u043c SSH<a name=\"three\"><\/a><\/h2>\n<p>  <\/p>\n<p>\u041c\u044b\u00a0\u0443\u043c\u043e\u043f\u043e\u043c\u0440\u0430\u0447\u0438\u0442\u0435\u043b\u044c\u043d\u043e \u043f\u043e\u0434\u0440\u043e\u0431\u043d\u043e <a href=\"https:\/\/blog.gitbutler.com\/signing-commits-in-git-explained\/\" rel=\"nofollow noopener noreferrer\">\u043f\u0438\u0441\u0430\u043b\u0438 \u043e\u0431\u00a0\u044d\u0442\u043e\u043c<\/a> \u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u043e \u043c\u0435\u0441\u044f\u0446\u0435\u0432 \u043d\u0430\u0437\u0430\u0434, \u0432\u0435\u0434\u044c GitButler \u0434\u0435\u043b\u0430\u0435\u0442 \u044d\u0442\u043e \u0434\u043b\u044f \u0432\u0430\u0441 \u0430\u0432\u0442\u043e\u043c\u0430\u0442\u0438\u0447\u0435\u0441\u043a\u0438 \u0447\u0435\u0440\u0435\u0437 \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0443 \u043a\u043e\u043d\u0444\u0438\u0433\u0443\u0440\u0430\u0446\u0438\u0438. \u041d\u043e\u00a0\u0435\u0441\u043b\u0438 \u0432\u0430\u043c \u0445\u043e\u0447\u0435\u0442\u0441\u044f \u043f\u043e\u0434\u043f\u0438\u0441\u044b\u0432\u0430\u0442\u044c \u043a\u043e\u043c\u043c\u0438\u0442\u044b \u0432\u00a0\u043a\u043e\u043c\u0430\u043d\u0434\u043d\u043e\u0439 \u0441\u0442\u0440\u043e\u043a\u0435, \u0447\u0438\u0442\u0430\u0439\u0442\u0435 \u0434\u0430\u043b\u044c\u0448\u0435.<\/p>\n<p>  <\/p>\n<p>\u0423\u0436\u0435 \u043a\u0430\u043a\u043e\u0435-\u0442\u043e \u0432\u0440\u0435\u043c\u044f Git \u0443\u043c\u0435\u0435\u0442 \u043f\u043e\u0434\u043f\u0438\u0441\u044b\u0432\u0430\u0442\u044c \u043a\u043e\u043c\u043c\u0438\u0442\u044b \u0441\u00a0GPG, \u043d\u043e\u00a0GPG \u043e\u0431\u044b\u0447\u043d\u043e \u0434\u043e\u0432\u043e\u043b\u044c\u043d\u043e \u0442\u0440\u0443\u0434\u043d\u043e \u0437\u0430\u0441\u0442\u0430\u0432\u0438\u0442\u044c \u0440\u0430\u0431\u043e\u0442\u0430\u0442\u044c \u043f\u0440\u0430\u0432\u0438\u043b\u044c\u043d\u043e \u0438\u043b\u0438 \u0442\u0440\u0443\u0434\u043d\u043e \u043f\u043e\u043d\u044f\u0442\u044c \u0434\u043e\u00a0\u043a\u043e\u043d\u0446\u0430, \u0435\u0441\u043b\u0438 \u0432\u044b\u00a0\u043d\u0435\u00a0\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043b\u0438\u0441\u044c \u0435\u0439\u00a0\u0440\u0430\u043d\u044c\u0448\u0435. \u041d\u0435\u0434\u0430\u0432\u043d\u043e OpenSSH \u043f\u0440\u0435\u0434\u0441\u0442\u0430\u0432\u0438\u043b\u0438 \u043d\u043e\u0432\u044b\u0439 \u0441\u043f\u043e\u0441\u043e\u0431 \u043f\u043e\u0434\u043f\u0438\u0441\u044b\u0432\u0430\u0442\u044c \u0434\u0430\u043d\u043d\u044b\u0435, \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u044f \u0441\u0443\u0449\u0435\u0441\u0442\u0432\u0443\u044e\u0449\u0438\u0439 \u043a\u043b\u044e\u0447 SSH, \u0438\u00a0\u0432\u00a0Git \u0438\u043d\u0442\u0435\u0433\u0440\u0438\u0440\u043e\u0432\u0430\u043b\u0438 \u044d\u0442\u043e \u043a\u0430\u043a \u043e\u043f\u0446\u0438\u044e, \u0447\u0442\u043e\u0431\u044b \u0434\u0435\u043b\u0430\u0442\u044c \u0442\u043e\u00a0\u0436\u0435 \u0441\u0430\u043c\u043e\u0435 \u0431\u0435\u0437\u00a0GPG.<\/p>\n<p>  <\/p>\n<p>\u0410\u00a0\u0435\u0449\u0451, \u0447\u0442\u043e \u0432\u0430\u0436\u043d\u043e, GitHub \u0438\u00a0GitLab \u043f\u0440\u043e\u0432\u0435\u0440\u044f\u0442 \u044d\u0442\u0438 \u043f\u043e\u0434\u043f\u0438\u0441\u0438, \u0435\u0441\u043b\u0438 \u0432\u044b\u00a0\u0437\u0430\u0433\u0440\u0443\u0437\u0438\u0442\u0435 \u0438\u0445\u00a0\u043e\u0442\u043a\u0440\u044b\u0442\u044b\u0435 \u043a\u043b\u044e\u0447\u0438 \u0432\u00a0\u0430\u043a\u043a\u0430\u0443\u043d\u0442. \u0421\u0434\u0435\u043b\u0430\u0442\u044c \u044d\u0442\u043e \u0434\u043e\u0441\u0442\u0430\u0442\u043e\u0447\u043d\u043e \u043f\u0440\u043e\u0441\u0442\u043e. \u0423\u0441\u0442\u0430\u043d\u043e\u0432\u0438\u0442\u0435 <code>gpg.format<\/code> \u0432\u00a0\u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435 <code>ssh<\/code> \u0438\u00a0\u0441\u043a\u0430\u0436\u0438\u0442\u0435 \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0435, \u0433\u0434\u0435 \u0432\u0430\u0448 \u043a\u043b\u044e\u0447 \u043f\u043e\u0434\u043f\u0438\u0441\u0438:<\/p>\n<p>  <\/p>\n<pre><code class=\"bash\">git config gpg.format ssh git config user.signingKey ~\/.ssh\/id_rsa.pub<\/code><\/pre>\n<p>  <\/p>\n<p>\u0415\u0441\u043b\u0438 \u0442\u0435\u043f\u0435\u0440\u044c \u0432\u044b\u043f\u043e\u043b\u043d\u0438\u0442\u044c <code>git commit -S<\/code>, \u043e\u043d\u0430 \u043f\u043e\u043f\u0440\u043e\u0431\u0443\u0435\u0442 \u043f\u043e\u0434\u043f\u0438\u0441\u0430\u0442\u044c \u0432\u0430\u0448 \u043a\u043e\u043c\u043c\u0438\u0442 \u0441\u00a0\u044d\u0442\u0438\u043c \u043a\u043b\u044e\u0447\u043e\u043c. \u0410\u00a0\u0435\u0441\u043b\u0438 \u043f\u043e\u043b\u0443\u0447\u0438\u0442\u0441\u044f \u0438\u00a0\u0432\u044b\u00a0\u0437\u0430\u0433\u0440\u0443\u0437\u0438\u0442\u0435 \u043e\u0442\u043a\u0440\u044b\u0442\u044b\u0439 \u043a\u043b\u044e\u0447 \u043d\u0430\u00a0Github (\u0432\u00a0Signing Keys), \u0442\u043e\u00a0\u043f\u043e\u043b\u0443\u0447\u0438\u0442\u0435 \u0437\u043d\u0430\u0447\u043e\u043a verified \u0434\u043b\u044f \u043a\u043e\u043c\u043c\u0438\u0442\u043e\u0432:<\/p>\n<p>  <\/p>\n<p><img decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w1560\/getpro\/habr\/post_images\/14b\/e04\/45d\/14be0445d0b4dee5a53a9ab79bad54f1.png\" data-src=\"https:\/\/habrastorage.org\/getpro\/habr\/post_images\/14b\/e04\/45d\/14be0445d0b4dee5a53a9ab79bad54f1.png\"\/><br \/>  <em>\u0411\u0443\u0434\u044c\u0442\u0435 \u0431\u0434\u0438\u0442\u0435\u043b\u044c\u043d\u044b<\/em><\/p>\n<p>  <\/p>\n<h2 id=\"podpisyvanie-pusheyanchorfouranchor\">\u041f\u043e\u0434\u043f\u0438\u0441\u044b\u0432\u0430\u043d\u0438\u0435 \u043f\u0443\u0448\u0435\u0439<a name=\"four\"><\/a><\/h2>\n<p>  <\/p>\n<p>\u042f\u00a0\u043d\u0435\u00a0\u0445\u043e\u0447\u0443 \u043f\u043e\u0433\u0440\u0443\u0436\u0430\u0442\u044c\u0441\u044f \u0432\u00a0\u0442\u043e\u043d\u043d\u044b \u043f\u043e\u0434\u0440\u043e\u0431\u043d\u043e\u0441\u0442\u0435\u0439, \u0432\u0435\u0434\u044c \u044d\u0442\u0438\u043c \u043f\u043e\u043b\u044c\u0437\u0443\u044e\u0442\u0441\u044f \u043d\u0435\u00a0\u0441\u043b\u0438\u0448\u043a\u043e\u043c \u0447\u0430\u0441\u0442\u043e, \u043d\u043e\u00a0\u043c\u043e\u0436\u0435\u0442 \u0431\u044b\u0442\u044c \u043a\u043e\u043c\u0443-\u043d\u0438\u0431\u0443\u0434\u044c \u0438\u043d\u0442\u0435\u0440\u0435\u0441\u043d\u043e. Git \u0441\u0435\u0439\u0447\u0430\u0441 \u043c\u043e\u0436\u0435\u0442 \u043f\u043e\u0434\u043f\u0438\u0441\u044b\u0432\u0430\u0442\u044c \u043d\u0435\u00a0\u0442\u043e\u043b\u044c\u043a\u043e \u043a\u043e\u043c\u043c\u0438\u0442\u044b, \u043d\u043e\u00a0\u0438\u00a0<em>\u043f\u0443\u0448\u0438<\/em>.<\/p>\n<p>  <\/p>\n<p>\u041f\u043e\u0441\u043a\u043e\u043b\u044c\u043a\u0443 \u043d\u0438\u00a0\u043e\u0434\u0438\u043d \u0438\u0437\u00a0\u043e\u0441\u043d\u043e\u0432\u043d\u044b\u0445 Git-\u0445\u043e\u0441\u0442\u0438\u043d\u0433\u043e\u0432 (GitHub, GitLab, Bitbucket) \u043d\u0435\u00a0\u043f\u043e\u0434\u0434\u0435\u0440\u0436\u0438\u0432\u0430\u0435\u0442 \u044d\u0442\u0443 \u0444\u0443\u043d\u043a\u0446\u0438\u044e, \u044d\u0442\u043e \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e \u0442\u043e\u043b\u044c\u043a\u043e \u0432\u00a0\u0441\u043b\u0443\u0447\u0430\u0435, \u0435\u0441\u043b\u0438 \u0432\u044b\u00a0\u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u0442\u0435 \u0441\u043e\u0431\u0441\u0442\u0432\u0435\u043d\u043d\u044b\u0439 \u0441\u0435\u0440\u0432\u0435\u0440. \u041d\u043e\u00a0\u0435\u0441\u043b\u0438 \u044d\u0442\u043e \u0442\u0430\u043a, \u0432\u044b\u00a0\u043c\u043e\u0436\u0435\u0442\u0435 \u0432\u044b\u043f\u043e\u043b\u043d\u0438\u0442\u044c <code>git push --signed<\/code>, \u0447\u0442\u043e\u0431\u044b \u043f\u043e\u0434\u043f\u0438\u0441\u0430\u0442\u044c \u043e\u0431\u043d\u043e\u0432\u043b\u0435\u043d\u0438\u0435 \u0441\u0441\u044b\u043b\u043a\u0438 \u043d\u0430\u00a0\u0441\u0435\u0440\u0432\u0435\u0440\u0435, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u0433\u0434\u0435-\u043d\u0438\u0431\u0443\u0434\u044c \u0441\u043e\u0445\u0440\u0430\u043d\u0438\u0442 \u043f\u0440\u043e\u0437\u0440\u0430\u0447\u043d\u044b\u0439 \u043b\u043e\u0433 \u0441\u00a0\u043f\u0440\u043e\u0432\u0435\u0440\u044f\u0435\u043c\u043e\u0439 \u043f\u043e\u0434\u043f\u0438\u0441\u044c\u044e.<\/p>\n<p>  <\/p>\n<p>\u0415\u0441\u043b\u0438 \u0438\u043d\u0442\u0435\u0440\u0435\u0441\u043d\u043e, \u0445\u043e\u0440\u043e\u0448\u0430\u044f <a href=\"https:\/\/people.kernel.org\/monsieuricon\/signed-git-pushes?ref=blog.gitbutler.com\" rel=\"nofollow noopener noreferrer\">\u0437\u0430\u043f\u0438\u0441\u044c<\/a> \u043f\u0440\u043e \u044d\u0442\u043e \u0435\u0441\u0442\u044c \u043d\u0430\u00a0kernel.org.<\/p>\n<p>  <\/p>\n<p><a href=\"https:\/\/www.youtube.com\/watch?v=vCadcBR95oU\" rel=\"nofollow noopener noreferrer\">Push it\u00a0real good<\/a> [\u0430\u0432\u0442\u043e\u0440 \u043d\u0430\u043c\u0435\u043a\u0430\u0435\u0442 \u043d\u0430\u00a0\u043f\u0435\u0441\u043d\u044e, \u0441\u0441\u044b\u043b\u043a\u0443 \u043d\u0430\u00a0\u043a\u043e\u0442\u043e\u0440\u0443\u044e \u0432\u00a0\u043e\u0440\u0438\u0433\u0438\u043d\u0430\u043b\u0435 \u043d\u0435\u00a0\u043f\u0440\u0438\u0432\u043e\u0434\u0438\u0442].<\/p>\n<p>  <\/p>\n<h2 id=\"obsluzhivanie-gitanchorfiveanchor\">\u041e\u0431\u0441\u043b\u0443\u0436\u0438\u0432\u0430\u043d\u0438\u0435 Git<a name=\"five\"><\/a><\/h2>\n<p>  <\/p>\n<p>\u041f\u043e\u0441\u043b\u0435\u0434\u043d\u044f\u044f \u0437\u0430\u0431\u0430\u0432\u043d\u0430\u044f \u0448\u0442\u0443\u043a\u0430, \u043e\u00a0\u043a\u043e\u0442\u043e\u0440\u043e\u0439 \u0440\u0430\u0441\u0441\u043a\u0430\u0436\u0443,\u00a0\u2014 <code>git maintenance<\/code>. \u041a\u043e\u043c\u0430\u043d\u0434\u0443 \u043e\u0431\u0441\u043b\u0443\u0436\u0438\u0432\u0430\u043d\u0438\u044f \u0432\u0432\u0435\u043b\u0438, \u043a\u0430\u0436\u0435\u0442\u0441\u044f, \u0432\u00a0Git 2.30. \u041e\u043d\u0430, \u043f\u043e\u00a0\u0441\u0443\u0442\u0438, \u0434\u0430\u0451\u0442 \u0441\u043f\u043e\u0441\u043e\u0431 \u0434\u043e\u0431\u0430\u0432\u0438\u0442\u044c \u0432\u00a0\u0440\u0435\u043f\u043e\u0437\u0438\u0442\u043e\u0440\u0438\u0439 \u0437\u0430\u0434\u0430\u0447\u0438 cron, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u0432\u044b\u043f\u043e\u043b\u043d\u044f\u044e\u0442\u0441\u044f \u0440\u0430\u0437 \u0432\u00a0\u0434\u0435\u043d\u044c, \u0432\u00a0\u0447\u0430\u0441 \u0438\u043b\u0438 \u0432\u00a0\u043d\u0435\u0434\u0435\u043b\u044e.<\/p>\n<p>  <\/p>\n<p>\u0412\u043a\u043b\u044e\u0447\u0438\u0442\u044c \u0438\u0445\u00a0\u043c\u043e\u0436\u043d\u043e, \u0432\u044b\u043f\u043e\u043b\u043d\u0438\u0432 \u044d\u0442\u0443 \u043a\u043e\u043c\u0430\u043d\u0434\u0443:<\/p>\n<p>  <\/p>\n<pre><code class=\"bash\">git maintenance start<\/code><\/pre>\n<p>  <\/p>\n<p>\u042d\u0442\u043e \u0438\u0437\u043c\u0435\u043d\u0438\u0442 \u0444\u0430\u0439\u043b <code>.git\/config<\/code> \u0438\u00a0\u0434\u043e\u0431\u0430\u0432\u0438\u0442 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435 <code>maintenance.strategy<\/code>, \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043b\u0435\u043d\u043d\u043e\u0435 \u043d\u0430\u00a0<code>incremental<\/code>,\u00a0\u2014 \u044d\u0442\u043e \u043a\u043e\u0440\u043e\u0442\u043a\u0430\u044f \u0437\u0430\u043f\u0438\u0441\u044c \u0434\u043b\u044f \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0439 \u043d\u0438\u0436\u0435:<\/p>\n<p>  <\/p>\n<ul>\n<li><code>gc<\/code>\u00a0\u2014 \u043e\u0442\u043a\u043b\u044e\u0447\u0435\u043d\u0430;  <\/li>\n<li><code>commit-graph<\/code>\u00a0\u2014 \u0440\u0430\u0437 \u0432\u00a0\u0447\u0430\u0441;  <\/li>\n<li><code>prefetch<\/code>\u00a0\u2014 \u0440\u0430\u0437 \u0432\u00a0\u0447\u0430\u0441;  <\/li>\n<li><code>loose-objects<\/code>\u00a0\u2014 \u0440\u0430\u0437 \u0432\u00a0\u0434\u0435\u043d\u044c;  <\/li>\n<li><code>incremental-repack<\/code>\u00a0\u2014 \u0440\u0430\u0437 \u0432\u00a0\u0434\u0435\u043d\u044c.<\/li>\n<\/ul>\n<p>  <\/p>\n<p>\u042d\u0442\u043e \u043e\u0437\u043d\u0430\u0447\u0430\u0435\u0442, \u0447\u0442\u043e \u043a\u0430\u0436\u0434\u044b\u0439 \u0447\u0430\u0441 \u0432\u0430\u0448 \u0433\u0440\u0430\u0444 \u043a\u043e\u043c\u043c\u0438\u0442\u043e\u0432 \u043f\u0435\u0440\u0435\u0441\u0442\u0440\u0430\u0438\u0432\u0430\u0435\u0442\u0441\u044f, \u0432\u044b\u043f\u043e\u043b\u043d\u044f\u0435\u0442\u0441\u044f prefetch\u00a0\u2014 \u043f\u0440\u0435\u0434\u0432\u0430\u0440\u0438\u0442\u0435\u043b\u044c\u043d\u043e\u0435 \u0438\u0437\u0432\u043b\u0435\u0447\u0435\u043d\u0438\u0435 (\u043e\u0431\u00a0\u044d\u0442\u0438\u0445 \u043f\u043e\u043d\u044f\u0442\u0438\u044f\u0445 \u0440\u0430\u0441\u0441\u043a\u0430\u0436\u0443 \u0432\u00a0\u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0435\u043c \u043f\u043e\u0441\u0442\u0435). \u041e\u0434\u0438\u043d \u0440\u0430\u0437 \u0432\u00a0\u0434\u0435\u043d\u044c Git \u0443\u0431\u0438\u0440\u0430\u0435\u0442\u0441\u044f \u0432 \u0440\u044b\u0445\u043b\u044b\u0445 \u043e\u0431\u044a\u0435\u043a\u0442\u0430\u0445.\u00a0\u0414\u0438\u0440\u0435\u043a\u0442\u043e\u0440\u0438\u044f \u043e\u0431\u044a\u0435\u043a\u0442\u043e\u0432 \u043f\u043e\u043c\u0435\u0449\u0430\u0435\u0442\u0441\u044f \u0432\u00a0pack-\u0444\u0430\u0439\u043b\u044b \u043f\u0440\u0438 \u043f\u043e\u043c\u043e\u0449\u0438 <code>multi-pack-index<\/code> (\u043f\u043e\u0434\u0440\u043e\u0431\u043d\u043e\u0441\u0442\u0438 \u0447\u0438\u0442\u0430\u0439\u0442\u0435 <a href=\"https:\/\/github.blog\/2021-04-29-scaling-monorepo-maintenance\/?ref=blog.gitbutler.com#multi-pack-indexes\" rel=\"nofollow noopener noreferrer\">\u0432 \u043d\u0435\u0432\u0435\u0440\u043e\u044f\u0442\u043d\u043e\u043c \u043f\u043e\u0441\u0442\u0435<\/a> \u0422\u0435\u0439\u043b\u043e\u0440\u0430 \u0411\u043b\u0430\u0443 \u0438\u0437\u00a0GitHub).<\/p>\n<p>  <\/p>\n<p>\u0412\u00a0\u043e\u0441\u043d\u043e\u0432\u043d\u043e\u043c \u044d\u0442\u0430 \u043a\u043e\u043d\u0444\u0438\u0433\u0443\u0440\u0430\u0446\u0438\u044f \u043f\u0440\u043e\u0441\u0442\u043e \u043c\u043d\u043e\u0433\u043e \u0447\u0435\u0433\u043e \u0434\u0435\u043b\u0430\u0435\u0442 \u0431\u044b\u0441\u0442\u0440\u0435\u0435, \u0430\u0432\u0442\u043e\u043c\u0430\u0442\u0438\u0447\u0435\u0441\u043a\u0438 \u0438\u00a0\u0432\u00a0\u0444\u043e\u043d\u043e\u0432\u043e\u043c \u0440\u0435\u0436\u0438\u043c\u0435.<\/p>\n<p>  <\/p>\n<p>\u0415\u0449\u0451 <code>git maintenance<\/code> \u043f\u043e-\u0440\u0430\u0437\u043d\u043e\u043c\u0443 \u043f\u043e\u0441\u0442\u0430\u0432\u0438\u0442 cron-\u0437\u0430\u0434\u0430\u0447\u0438 \u0432\u00a0\u0440\u0430\u0441\u043f\u0438\u0441\u0430\u043d\u0438\u0435 \u0432\u00a0\u0437\u0430\u0432\u0438\u0441\u0438\u043c\u043e\u0441\u0442\u0438 \u043e\u0442\u00a0\u043e\u043f\u0435\u0440\u0430\u0446\u0438\u043e\u043d\u043d\u043e\u0439 \u0441\u0438\u0441\u0442\u0435\u043c\u044b. \u041d\u0430\u00a0\u041c\u0430\u043a\u0435 \u0432\u00a0<code>LaunchAgent<\/code> \u0431\u0443\u0434\u0435\u0442 \u0434\u043e\u0431\u0430\u0432\u043b\u0435\u043d\u043e \u0447\u0442\u043e-\u0442\u043e \u0442\u0430\u043a\u043e\u0435:<\/p>\n<p>  <\/p>\n<p><img decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w1560\/getpro\/habr\/post_images\/b25\/9e3\/c61\/b259e3c618105082aeb988a5d5437498.png\" data-src=\"https:\/\/habrastorage.org\/getpro\/habr\/post_images\/b25\/9e3\/c61\/b259e3c618105082aeb988a5d5437498.png\"\/><\/p>\n<p>  <\/p>\n<p>\u0415\u0441\u043b\u0438 \u043b\u044e\u0431\u043e\u043f\u044b\u0442\u043d\u043e, \u043a\u0430\u043a \u0432\u044b\u0433\u043b\u044f\u0434\u044f\u0442 \u0444\u0430\u0439\u043b\u044b plist, \u0442\u043e\u00a0\u044d\u0442\u043e \u043f\u0440\u0438\u043c\u0435\u0440\u043d\u043e \u0442\u0430\u043a:<\/p>\n<p>  <\/p>\n<p><img decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w1560\/getpro\/habr\/post_images\/a4a\/297\/7d3\/a4a2977d39160aedd9e12fc89c4201da.png\" data-src=\"https:\/\/habrastorage.org\/getpro\/habr\/post_images\/a4a\/297\/7d3\/a4a2977d39160aedd9e12fc89c4201da.png\"\/><br \/>  <em>\u041f\u0440\u043e <code>git maintenance<\/code> \u0438\u00a0\u0435\u0451\u00a0\u0440\u0430\u0437\u043d\u044b\u0435 \u043e\u043f\u0446\u0438\u0438 \u043c\u043e\u0436\u043d\u043e \u043f\u043e\u0447\u0438\u0442\u0430\u0442\u044c <a href=\"https:\/\/git-scm.com\/docs\/git-maintenance?ref=blog.gitbutler.com\" rel=\"nofollow noopener noreferrer\">\u0442\u0443\u0442<\/a><\/em><\/p>\n<p>  <\/p>\n<p>\u041e\u043a\u0435\u0439, \u0430\u00a0\u0442\u0435\u043f\u0435\u0440\u044c \u043f\u0435\u0440\u0435\u0445\u043e\u0434\u0438\u043c \u043a\u00a0\u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0435\u043c\u0443 \u043f\u043e\u0441\u0442\u0443, \u0433\u0434\u0435 \u0440\u0430\u0441\u0441\u043a\u0430\u0437\u044b\u0432\u0430\u0435\u0442\u0441\u044f \u043f\u0440\u043e \u0433\u0440\u0430\u0444 \u043a\u043e\u043c\u043c\u0438\u0442\u043e\u0432 \u0438\u00a0\u043f\u0440\u0435\u0434\u0432\u0430\u0440\u0438\u0442\u0435\u043b\u044c\u043d\u043e\u0435 \u0438\u0437\u0432\u043b\u0435\u0447\u0435\u043d\u0438\u0435 (prefetch). \u0412\u0433\u0440\u044b\u0437\u0430\u0435\u043c\u0441\u044f \u0432\u00a0<a href=\"https:\/\/blog.gitbutler.com\/git-tips-3-really-large-repositories\/\" rel=\"nofollow noopener noreferrer\">\u0440\u0435\u0430\u043b\u044c\u043d\u043e \u0431\u043e\u043b\u044c\u0448\u0438\u0435 \u0440\u0435\u043f\u043e\u0437\u0438\u0442\u043e\u0440\u0438\u0438<\/a>.<\/p>\n<\/div>\n<\/div>\n<\/div>\n<p><!----><!----><\/div>\n<p><!----><!----><br \/> \u0441\u0441\u044b\u043b\u043a\u0430 \u043d\u0430 \u043e\u0440\u0438\u0433\u0438\u043d\u0430\u043b \u0441\u0442\u0430\u0442\u044c\u0438 <a href=\"https:\/\/habr.com\/ru\/articles\/794252\/\"> https:\/\/habr.com\/ru\/articles\/794252\/<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<div><!--[--><!--]--><\/div>\n<div id=\"post-content-body\">\n<div>\n<div class=\"article-formatted-body article-formatted-body article-formatted-body_version-1\">\n<div xmlns=\"http:\/\/www.w3.org\/1999\/xhtml\">\n<p><em>\u0410\u0432\u0442\u043e\u0440 \u043e\u0440\u0438\u0433\u0438\u043d\u0430\u043b\u0430 \u0421\u043a\u043e\u0442\u0442 \u0427\u0430\u043a\u043e\u043d\u00a0\u2014 \u0441\u043e\u043e\u0441\u043d\u043e\u0432\u0430\u0442\u0435\u043b\u044c GitHub \u0438\u00a0\u043e\u0441\u043d\u043e\u0432\u0430\u0442\u0435\u043b\u044c \u043d\u043e\u0432\u043e\u0433\u043e \u043a\u043b\u0438\u0435\u043d\u0442\u0430 GitButler. \u042d\u0442\u043e\u0442 \u043a\u043b\u0438\u0435\u043d\u0442 \u0441\u0442\u0430\u0432\u0438\u0442 \u0432\u043e\u00a0\u0433\u043b\u0430\u0432\u0443 \u0443\u0433\u043b\u0430 \u0440\u0430\u0431\u043e\u0447\u0438\u0439 \u043f\u0440\u043e\u0446\u0435\u0441\u0441 \u0438\u00a0\u0443\u0434\u043e\u0431\u0441\u0442\u0432\u043e \u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u043a\u0438, \u0432\u00a0\u0442\u043e\u043c \u0447\u0438\u0441\u043b\u0435 \u043a\u043e\u0434-\u0440\u0435\u0432\u044c\u044e, \u0438\u00a0\u043d\u0435\u00a0\u044f\u0432\u043b\u044f\u0435\u0442\u0441\u044f \u043f\u0440\u043e\u0441\u0442\u043e \u043e\u0447\u0435\u0440\u0435\u0434\u043d\u043e\u0439 \u043e\u0431\u0451\u0440\u0442\u043a\u043e\u0439 \u043d\u0430\u0434 CLI git.<\/em><\/p>\n<p>  <\/p>\n<p>\u0414\u0430\u043b\u0435\u0435 \u0432\u00a0\u043d\u0430\u0448\u0435\u0439 \u0441\u0435\u0440\u0438\u0438 \u043f\u043e\u0441\u0442\u043e\u0432 <a href=\"https:\/\/blog.gitbutler.com\/git-tips-and-tricks\/\" rel=\"nofollow noopener noreferrer\">\u0438\u0437 \u0442\u0440\u0451\u0445 \u0447\u0430\u0441\u0442\u0435\u0439<\/a> \u0443\u00a0\u043d\u0430\u0441 \u043d\u043e\u0432\u044b\u0435 \u0444\u0438\u0447\u0438! \u0417\u0434\u0435\u0441\u044c \u044f\u00a0\u0440\u0430\u0441\u0441\u043a\u0430\u0436\u0443 \u043f\u0440\u043e \u043f\u044f\u0442\u044c \u043e\u0442\u043d\u043e\u0441\u0438\u0442\u0435\u043b\u044c\u043d\u043e \u043d\u043e\u0432\u044b\u0445 \u0432\u0435\u0449\u0435\u0439 \u0432\u00a0git, \u043e\u00a0\u043a\u043e\u0442\u043e\u0440\u044b\u0445 \u0432\u044b\u00a0\u043c\u043e\u0433\u043b\u0438 \u043d\u0435\u00a0\u0441\u043b\u044b\u0448\u0430\u0442\u044c, \u043f\u043e\u0442\u043e\u043c\u0443 \u0447\u0442\u043e <em>\u043d\u0443 \u043f\u043e\u0447\u0435\u043c\u0443 \u0432\u044b? <\/em><\/p>\n<p>  <\/p>\n<p>\u041c\u044b\u00a0\u0432\u0437\u0433\u043b\u044f\u043d\u0435\u043c \u043d\u0430:<\/p>\n<p>  <\/p>\n<ul>\n<li><a href=\"https:\/\/habr.com\/ru\/articles\/794252\/#one\">\u0428\u0442\u0443\u043a\u0438 \u0441\u00a0git branch<\/a>.<\/li>\n<li><a href=\"https:\/\/habr.com\/ru\/articles\/794252\/#two\">\u041f\u0440\u0438\u043d\u0443\u0434\u0438\u0442\u0435\u043b\u044c\u043d\u044b\u0439 \u0431\u0435\u0437\u043e\u043f\u0430\u0441\u043d\u044b\u0439 \u043f\u0443\u0448<\/a>.<\/li>\n<li><a href=\"https:\/\/habr.com\/ru\/articles\/794252\/#three\">\u041f\u043e\u0434\u043f\u0438\u0441\u044b\u0432\u0430\u043d\u0438\u0435 \u043a\u043e\u043c\u043c\u0438\u0442\u043e\u0432 \u043a\u043b\u044e\u0447\u043e\u043c SSH<\/a>.<\/li>\n<li><a href=\"https:\/\/habr.com\/ru\/articles\/794252\/#four\">\u041f\u043e\u0434\u043f\u0438\u0441\u044b\u0432\u0430\u043d\u0438\u0435 \u043f\u0443\u0448\u0435\u0439<\/a>.<\/li>\n<li><a href=\"https:\/\/habr.com\/ru\/articles\/794252\/#five\">\u041e\u0431\u0441\u043b\u0443\u0436\u0438\u0432\u0430\u043d\u0438\u0435 Git<\/a>.<br \/>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[],"tags":[],"class_list":["post-368405","post","type-post","status-publish","format-standard","hentry"],"_links":{"self":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/368405","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=368405"}],"version-history":[{"count":0,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/368405\/revisions"}],"wp:attachment":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=368405"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=368405"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=368405"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}