{"id":368116,"date":"2024-05-21T03:35:47","date_gmt":"2024-05-21T03:35:47","guid":{"rendered":"http:\/\/savepearlharbor.com\/?p=368116"},"modified":"-0001-11-30T00:00:00","modified_gmt":"2024-05-21T03:35:47","slug":"","status":"publish","type":"post","link":"https:\/\/savepearlharbor.com\/?p=368116","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 \u043f\u0435\u0440\u0432\u0430\u044f: \u0441\u0442\u0430\u0440\u044b\u0439 \u0434\u043e\u0431\u0440\u044b\u0439 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 <a href=\"https:\/\/gitbutler.com\/\" rel=\"nofollow noopener noreferrer\">\u043d\u043e\u0432\u043e\u0433\u043e \u043a\u043b\u0438\u0435\u043d\u0442\u0430 GitButler<\/a>. \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 \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>\u0412\u00a0\u043f\u0435\u0440\u0432\u043e\u043c \u043f\u043e\u0441\u0442\u0435 \u0438\u0437\u00a0\u044d\u0442\u043e\u0439 <a href=\"https:\/\/blog.gitbutler.com\/git-tips-and-tricks\/\" rel=\"nofollow noopener noreferrer\">\u043a\u043e\u0440\u043e\u0442\u043a\u043e\u0439 \u0441\u0435\u0440\u0438\u0438 \u043f\u043e\u00a0Git<\/a> \u044f\u00a0\u0445\u043e\u0442\u0435\u043b \u043d\u0430\u0447\u0430\u0442\u044c \u0441\u00a0\u0432\u0435\u0449\u0435\u0439, \u0443\u0436\u0435 \u0441\u0443\u0449\u0435\u0441\u0442\u0432\u0443\u044e\u0449\u0438\u0445 \u043a\u0430\u043a\u043e\u0435-\u0442\u043e \u0432\u0440\u0435\u043c\u044f. \u041f\u0440\u0438 \u044d\u0442\u043e\u043c \u043a\u0430\u0436\u0435\u0442\u0441\u044f, \u0447\u0442\u043e \u043c\u043d\u043e\u0433\u0438\u0435 \u043b\u044e\u0434\u0438 \u043e\u00a0\u043d\u0438\u0445 \u043d\u0435\u00a0\u0437\u043d\u0430\u044e\u0442 \u0438\u043b\u0438 \u043d\u0435\u00a0\u0443\u043c\u0435\u044e\u0442 \u0438\u043c\u0438 \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c\u0441\u044f. \u0412\u00a0\u043d\u0438\u0445 \u043d\u0435\u0442 \u043d\u0438\u0447\u0435\u0433\u043e \u043d\u043e\u0432\u043e\u0433\u043e, \u043d\u043e\u00a0\u044f\u00a0\u043d\u0430\u0445\u043e\u0436\u0443 \u0438\u0445\u00a0\u043f\u043e\u043b\u0435\u0437\u043d\u044b\u043c\u0438 \u0438, \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e, \u043d\u0435 \u0441\u043e\u0432\u0441\u0435\u043c \u043e\u0441\u0432\u0435\u0449\u0451\u043d\u043d\u044b\u043c\u0438. \u042f\u00a0\u043f\u0440\u043e\u0441\u0442\u043e \u0445\u043e\u0447\u0443 \u0440\u0430\u0441\u0441\u043a\u0430\u0437\u0430\u0442\u044c \u043e:<\/p>\n<p>  <\/p>\n<ul>\n<li><a href=\"https:\/\/habr.com\/ru\/articles\/793488\/#one\">\u0443\u0441\u043b\u043e\u0432\u043d\u043e\u0439 \u043a\u043e\u043d\u0444\u0438\u0433\u0443\u0440\u0430\u0446\u0438\u0438<\/a>;<\/li>\n<li><a href=\"https:\/\/habr.com\/ru\/articles\/793488\/#two\"><code>git blame<\/code> \u0438\u00a0<code>git log<\/code> \u0441\u00a0\u0434\u0438\u0430\u043f\u0430\u0437\u043e\u043d\u0430\u043c\u0438 \u0441\u0442\u0440\u043e\u043a<\/a>;<\/li>\n<li><a href=\"https:\/\/habr.com\/ru\/articles\/793488\/#three\"><code>git blame<\/code> \u0441\u00a0\u043e\u0442\u0441\u043b\u0435\u0436\u0438\u0432\u0430\u043d\u0438\u0435\u043c<\/a>;<\/li>\n<li><a href=\"https:\/\/habr.com\/ru\/articles\/793488\/#four\"><code>git diff<\/code> \u043f\u043e\u00a0\u0441\u043b\u043e\u0432\u0430\u043c \u0432\u043c\u0435\u0441\u0442\u043e \u0441\u0442\u0440\u043e\u043a<\/a>;<\/li>\n<li><a href=\"https:\/\/habr.com\/ru\/articles\/793488\/#five\">\u0437\u0430\u043f\u043e\u043c\u0438\u043d\u0430\u043d\u0438\u0438 \u0440\u0430\u0437\u0440\u0435\u0448\u0435\u043d\u0438\u044f \u043a\u043e\u043d\u0444\u043b\u0438\u043a\u0442\u043e\u0432<\/a>.<\/li>\n<\/ul>\n<p>  <\/p>\n<p><a name=\"habracut\"><\/a><\/p>\n<hr\/>\n<p>  <a name=\"one\"><\/a>  <\/p>\n<h2 id=\"uslovnaya-konfiguraciya\">\u0423\u0441\u043b\u043e\u0432\u043d\u0430\u044f \u043a\u043e\u043d\u0444\u0438\u0433\u0443\u0440\u0430\u0446\u0438\u044f<\/h2>\n<p>  <\/p>\n<p>\u041c\u043d\u043e\u0433\u0438\u0435 \u0438\u0437\u00a0\u0432\u0430\u0441, \u0432\u0435\u0440\u043e\u044f\u0442\u043d\u043e, \u0437\u043d\u0430\u044e\u0442, \u0447\u0442\u043e \u0432\u00a0Git \u0435\u0441\u0442\u044c \u043c\u0430\u043b\u0435\u043d\u044c\u043a\u043e\u0435 \u043a\u043b\u0430\u0441\u0441\u043d\u043e\u0435 \u0445\u0440\u0430\u043d\u0438\u043b\u0438\u0449\u0435 \u00ab\u043a\u043b\u044e\u0447-\u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435\u00bb, \u0432\u044b\u0437\u044b\u0432\u0430\u0435\u043c\u043e\u0435 \u043a\u043e\u043c\u0430\u043d\u0434\u043e\u0439 <code>git config<\/code>. \u0415\u0433\u043e \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u044f, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u043f\u043e\u0434\u0441\u0442\u0430\u0432\u043b\u044f\u044e\u0442\u0441\u044f \u043f\u0440\u0438 \u0432\u044b\u043f\u043e\u043b\u043d\u0435\u043d\u0438\u0438 \u0440\u0430\u0437\u043b\u0438\u0447\u043d\u044b\u0445 \u043a\u043e\u043c\u0430\u043d\u0434, Git \u043f\u0440\u043e\u0432\u0435\u0440\u044f\u0435\u0442 \u0432\u00a0\u0442\u0440\u0451\u0445 \u043c\u0435\u0441\u0442\u0430\u0445. <\/p>\n<p>  <\/p>\n<p>\u041d\u0430\u0432\u0435\u0440\u043d\u043e\u0435, \u043a\u0430\u0436\u0434\u043e\u0433\u043e \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044f Git \u043f\u0440\u0438 \u043f\u0435\u0440\u0432\u043e\u0439 \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0435 <a href=\"https:\/\/git-scm.com\/book\/en\/v2\/Getting-Started-First-Time-Git-Setup?ref=blog.gitbutler.com\" rel=\"nofollow noopener noreferrer\">\u043f\u043e\u043f\u0440\u043e\u0441\u0438\u043b\u0438<\/a> \u0437\u0430\u043f\u0443\u0441\u0442\u0438\u0442\u044c \u0447\u0442\u043e-\u0442\u043e \u0442\u0430\u043a\u043e\u0435:<\/p>\n<p>  <\/p>\n<pre><code class=\"bash\">git config --global user.name \"John Doe\" git config --global user.email johndoe@example.com<\/code><\/pre>\n<p>  <\/p>\n<p>\u041a\u043e\u043c\u0430\u043d\u0434\u0430 \u0434\u043e\u0431\u0430\u0432\u043b\u044f\u0435\u0442 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435 <code>user.name<\/code> \u0432\u00a0\u0444\u0430\u0439\u043b <code>~\/.gitconfig<\/code>. \u041d\u043e\u00a0\u0442\u0430\u043a\u0436\u0435 \u0435\u0441\u0442\u044c \u0434\u0440\u0443\u0433\u0438\u0435 \u043e\u043f\u0446\u0438\u0438:<\/p>\n<p>  <\/p>\n<ul>\n<li><code>--system<\/code>, \u043a\u043e\u0442\u043e\u0440\u043e\u0439, \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e, \u043d\u0438\u043a\u0442\u043e \u043d\u0435\u00a0\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043b\u0441\u044f. \u041e\u043d\u0430 \u0437\u0430\u043f\u0438\u0441\u044b\u0432\u0430\u0435\u0442 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435 \u0432\u00a0\u043e\u0431\u0449\u0435\u0441\u0438\u0441\u0442\u0435\u043c\u043d\u044b\u0439 \u043a\u043e\u043d\u0444\u0438\u0433\u0443\u0440\u0430\u0446\u0438\u043e\u043d\u043d\u044b\u0439 \u0444\u0430\u0439\u043b [\u043f\u0440\u0438\u043c. \u043f\u0435\u0440\u0435\u0432. \u2014\u00a0\u0440\u0435\u0447\u044c \u0438\u0434\u0451\u0442 \u043e\u00a0<code>$(prefix)\/etc\/gitconfig<\/code>];<\/li>\n<li><code>--local<\/code>\u00a0\u2014 \u043f\u043e\u00a0\u0443\u043c\u043e\u043b\u0447\u0430\u043d\u0438\u044e. \u041e\u043d\u0430 \u0437\u0430\u043f\u0438\u0441\u044b\u0432\u0430\u0435\u0442 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435 \u0432 <code>.git\/config<\/code> \u043b\u044e\u0431\u043e\u0433\u043e \u043f\u0440\u043e\u0435\u043a\u0442\u0430, \u0433\u0434\u0435 \u0432\u044b\u00a0\u043d\u0430\u0445\u043e\u0434\u0438\u0442\u0435\u0441\u044c \u043f\u0440\u044f\u043c\u043e \u0441\u0435\u0439\u0447\u0430\u0441.<\/li>\n<\/ul>\n<p>  <\/p>\n<p>\u0412\u00a0\u043f\u043e\u0438\u0441\u043a\u0435 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u044f Git \u0441\u043c\u043e\u0442\u0440\u0438\u0442 \u0432\u00a0\u0442\u0430\u043a\u043e\u043c \u043f\u043e\u0440\u044f\u0434\u043a\u0435:<\/p>\n<p>  <\/p>\n<ul>\n<li>\u043b\u043e\u043a\u0430\u043b\u044c\u043d\u043e\u0435;<\/li>\n<li>\u0433\u043b\u043e\u0431\u0430\u043b\u044c\u043d\u043e\u0435;<\/li>\n<li>\u0441\u0438\u0441\u0442\u0435\u043c\u043d\u043e\u0435.<\/li>\n<\/ul>\n<p>  <\/p>\n<p>\u041e\u0434\u043d\u0430\u043a\u043e \u0435\u0441\u0442\u044c <em>\u0441\u0435\u043a\u0440\u0435\u0442\u043d\u043e\u0435<\/em> \u0447\u0435\u0442\u0432\u0451\u0440\u0442\u043e\u0435 \u043c\u0435\u0441\u0442\u043e, \u043a\u043e\u0442\u043e\u0440\u043e\u0435 Git \u043c\u043e\u0436\u0435\u0442 \u043f\u043e\u0441\u043c\u043e\u0442\u0440\u0435\u0442\u044c. \u0415\u0441\u043b\u0438 \u0432\u044b\u00a0\u0434\u043e\u0431\u0430\u0432\u0438\u0442\u0435 \u0432\u00a0\u0441\u0432\u043e\u044e \u0433\u043b\u043e\u0431\u0430\u043b\u044c\u043d\u0443\u044e \u043a\u043e\u043d\u0444\u0438\u0433\u0443\u0440\u0430\u0446\u0438\u044e \u0447\u0442\u043e-\u0442\u043e \u043f\u0440\u0438\u043c\u0435\u0440\u043d\u043e \u0442\u0430\u043a\u043e\u0435:<\/p>\n<p>  <\/p>\n<pre><code class=\"plaintext\">[includeIf \"gitdir:~\/projects\/oss\"]     path = ~\/.gitconfig-oss<\/code><\/pre>\n<p>  <\/p>\n<p>Git \u043f\u043e\u0438\u0449\u0435\u0442 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435 \u0432\u00a0<code>~\/.gitconfig-oss<\/code>, <em>\u0442\u043e\u043b\u044c\u043a\u043e \u0435\u0441\u043b\u0438<\/em> \u043f\u0440\u043e\u0435\u043a\u0442, \u0441\u00a0\u043a\u043e\u0442\u043e\u0440\u044b\u043c \u0432\u044b\u00a0\u0441\u0435\u0439\u0447\u0430\u0441 \u0440\u0430\u0431\u043e\u0442\u0430\u0435\u0442\u0435, \u043d\u0430\u0445\u043e\u0434\u0438\u0442\u0441\u044f \u0432\u00a0<code>~\/projects\/oss<\/code>.<\/p>\n<p>  <\/p>\n<p>\u0418\u0442\u0430\u043a, \u0443\u00a0\u0432\u0430\u0441 \u043c\u043e\u0433\u043b\u0438\u00a0\u0431\u044b \u0431\u044b\u0442\u044c:<\/p>\n<p>  <\/p>\n<ul>\n<li>\u043a\u0430\u0442\u0430\u043b\u043e\u0433 <code>work<\/code> \u0441\u043e\u00a0\u0437\u043d\u0430\u0447\u0435\u043d\u0438\u044f\u043c\u0438, \u043e\u0442\u043d\u043e\u0441\u044f\u0449\u0438\u043c\u0438\u0441\u044f \u043a\u00a0\u043a\u043e\u043d\u043a\u0440\u0435\u0442\u043d\u043e\u0439 \u0440\u0430\u0431\u043e\u0442\u0435 (\u0430\u0434\u0440\u0435\u0441 \u044d\u043b\u0435\u043a\u0442\u0440\u043e\u043d\u043d\u043e\u0439 \u043f\u043e\u0447\u0442\u044b \u0432\u00a0\u043a\u043e\u043c\u043f\u0430\u043d\u0438\u0438, \u043a\u043b\u044e\u0447 GPG-\u043f\u043e\u0434\u043f\u0438\u0441\u0438 \u0438\u00a0\u0442.\u00a0\u0434.);<\/li>\n<li>\u043a\u0430\u0442\u0430\u043b\u043e\u0433 <code>oss<\/code> \u0441\u043e\u00a0\u0437\u043d\u0430\u0447\u0435\u043d\u0438\u044f\u043c\u0438 \u0434\u043b\u044f \u043f\u0440\u043e\u0435\u043a\u0442\u043e\u0432 \u0441\u00a0\u043e\u0442\u043a\u0440\u044b\u0442\u044b\u043c \u0438\u0441\u0445\u043e\u0434\u043d\u044b\u043c \u043a\u043e\u0434\u043e\u043c \u0438\u00a0 \u0442.\u00a0 \u0434.<\/li>\n<\/ul>\n<p>  <\/p>\n<p>\u041d\u043e\u00a0<code>gitdir<\/code>\u00a0\u2014 \u043d\u0435\u00a0\u0435\u0434\u0438\u043d\u0441\u0442\u0432\u0435\u043d\u043d\u044b\u0439 \u0444\u0438\u043b\u044c\u0442\u0440:<\/p>\n<p>  <\/p>\n<ul>\n<li>\u0447\u0435\u0440\u0435\u0437 <a href=\"https:\/\/git-scm.com\/docs\/git-config?ref=blog.gitbutler.com#Documentation\/git-config.txt-codeonbranchcode\" rel=\"nofollow noopener noreferrer\"><code>onbranch<\/code><\/a> \u043a\u0430\u043a \u0432\u043a\u043b\u044e\u0447\u0430\u044e\u0449\u0438\u0439 \u0444\u0438\u043b\u044c\u0442\u0440 \u043c\u043e\u0436\u043d\u043e \u0443\u043a\u0430\u0437\u0430\u0442\u044c \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u0451\u043d\u043d\u044b\u0435 <em>\u043d\u0430\u0437\u0432\u0430\u043d\u0438\u044f \u0432\u0435\u0442\u043a\u0438<\/em>;<\/li>\n<li>\u0447\u0435\u0440\u0435\u0437 <a href=\"https:\/\/git-scm.com\/docs\/git-config?ref=blog.gitbutler.com#Documentation\/git-config.txt-codehasconfigremoteurlcode\" rel=\"nofollow noopener noreferrer\"><code>hasconfig: remote.*.url<\/code><\/a> \u043c\u043e\u0436\u043d\u043e \u0432\u043a\u043b\u044e\u0447\u0430\u0442\u044c \u0444\u0430\u0439\u043b\u044b \u043a\u043e\u043d\u0444\u0438\u0433\u0443\u0440\u0430\u0446\u0438\u0438, \u0442\u043e\u043b\u044c\u043a\u043e \u0435\u0441\u043b\u0438 \u0443\u00a0\u0442\u0435\u043a\u0443\u0449\u0435\u0433\u043e \u043f\u0440\u043e\u0435\u043a\u0442\u0430 \u0435\u0441\u0442\u044c \u0443\u0434\u0430\u043b\u0451\u043d\u043d\u044b\u0439 \u0441\u0435\u0440\u0432\u0435\u0440 \u0441\u00a0\u043e\u043f\u0440\u0435\u0434\u0435\u043b\u0451\u043d\u043d\u044b\u043c\u0438 URL.<\/li>\n<\/ul>\n<p>  <\/p>\n<p>\u0422\u0430\u043a \u0447\u0442\u043e \u0441\u0442\u0430\u0432\u044c\u0442\u0435 \u043b\u0430\u0439\u043a, \u0435\u0441\u043b\u0438 \u0443\u00a0\u0432\u0430\u0441 \u0435\u0441\u0442\u044c \u043a\u043b\u044e\u0447\u0438 \u0434\u043b\u044f GitHub.org \u0438\u043b\u0438 \u0447\u0442\u043e-\u0442\u043e \u0432\u00a0\u044d\u0442\u043e\u043c \u0440\u043e\u0434\u0435. \u041f\u043e\u0434\u0440\u043e\u0431\u043d\u043e\u0441\u0442\u0438 \u0447\u0438\u0442\u0430\u0439\u0442\u0435 <a href=\"https:\/\/git-scm.com\/docs\/git-config?ref=blog.gitbutler.com#_includes\" rel=\"nofollow noopener noreferrer\">\u0432 \u0434\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u0430\u0446\u0438\u0438<\/a>.<a name=\"two\"><\/a><\/p>\n<p>  <\/p>\n<h2 id=\"git-blame-igit-log-sdiapazonami-strok\"><code>git blame<\/code> \u0438\u00a0<code>git log<\/code> \u0441\u00a0\u0434\u0438\u0430\u043f\u0430\u0437\u043e\u043d\u0430\u043c\u0438 \u0441\u0442\u0440\u043e\u043a<\/h2>\n<p>  <\/p>\n<p>\u0415\u0441\u0442\u044c \u043f\u0430\u0440\u0430 \u0438\u043d\u0442\u0435\u0440\u0435\u0441\u043d\u044b\u0445 \u043e\u043f\u0446\u0438\u0439 <code>git blame<\/code>, \u043e\u00a0\u043a\u043e\u0442\u043e\u0440\u044b\u0445 \u0431\u043e\u043b\u044c\u0448\u0438\u043d\u0441\u0442\u0432\u043e \u043b\u044e\u0434\u0435\u0439 \u043d\u0435\u00a0\u0437\u043d\u0430\u044e\u0442, \u0430\u00a0\u0432\u00a0\u0441\u0443\u0449\u0435\u0441\u0442\u0432\u0443\u044e\u0449\u0438\u0445 GUI \u043e\u043d\u0438 \u043f\u043e\u0447\u0442\u0438 \u043d\u0435\u00a0\u0440\u0435\u0430\u043b\u0438\u0437\u043e\u0432\u0430\u043d\u044b.<\/p>\n<p>  <\/p>\n<p>\u041e\u0434\u043d\u0430 \u0438\u0437\u00a0\u043d\u0438\u0445 <code>-L<\/code>\u00a0\u2014 \u0434\u0438\u0430\u043f\u0430\u0437\u043e\u043d \u0441\u0442\u0440\u043e\u043a. \u0415\u0441\u043b\u0438 \u0432\u044b\u00a0\u0437\u0430\u043f\u0443\u0441\u043a\u0430\u0435\u0442\u0435 <code>git blame<\/code> \u0432\u00a0CLI, \u0447\u0430\u0441\u0442\u043e \u0432\u044b\u00a0\u043f\u0440\u043e\u0441\u0442\u043e \u043f\u0440\u043e\u0441\u043c\u0430\u0442\u0440\u0438\u0432\u0430\u0435\u0442\u0435 \u0432\u0435\u0441\u044c \u0444\u0430\u0439\u043b \u0438\u00a0\u043d\u0430\u0445\u043e\u0434\u0438\u0442\u0435 \u0442\u0443\u00a0\u0447\u0430\u0441\u0442\u044c, \u043a\u043e\u0442\u043e\u0440\u0443\u044e \u0438\u0449\u0435\u0442\u0435. \u041d\u043e\u00a0\u0435\u0441\u043b\u0438 \u0432\u044b\u00a0\u0445\u043e\u0442\u0438\u0442\u0435 \u043e\u0442\u043e\u0431\u0440\u0430\u0437\u0438\u0442\u044c \u0442\u043e\u043b\u044c\u043a\u043e \u043f\u043e\u0434\u0440\u0430\u0437\u0434\u0435\u043b \u0444\u0430\u0439\u043b\u0430, \u0442\u043e\u00a0\u043c\u043e\u0436\u043d\u043e \u0437\u0430\u0434\u0430\u0442\u044c \u0434\u0438\u0430\u043f\u0430\u0437\u043e\u043d \u0441\u0442\u0440\u043e\u043a, \u043d\u0430\u043f\u0440\u0438\u043c\u0435\u0440 <code>git blame -L 28,43 \u043f\u0443\u0442\u044c\/\u043a\/\u0444\u0430\u0439\u043b\u0443<\/code>:<\/p>\n<p>  <\/p>\n<p><img decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w1560\/getpro\/habr\/post_images\/6f1\/342\/c78\/6f1342c785f23ee9a4d406af0e545a2f.png\" data-src=\"https:\/\/habrastorage.org\/getpro\/habr\/post_images\/6f1\/342\/c78\/6f1342c785f23ee9a4d406af0e545a2f.png\"\/><br \/>  <em><code>git blame -L<\/code><\/em><\/p>\n<p>  <\/p>\n<p>\u0427\u0442\u043e\u0431\u044b \u0434\u0430\u0442\u044c Git \u0448\u0430\u0431\u043b\u043e\u043d \u0434\u043b\u044f \u043f\u043e\u0438\u0441\u043a\u0430 \u043d\u0430\u0447\u0430\u043b\u0430 \u0431\u043b\u043e\u043a\u0430 \u0438\u00a0\u0432\u044b\u043f\u043e\u043b\u043d\u0438\u0442\u044c <code>git blame<\/code> \u0442\u043e\u043b\u044c\u043a\u043e \u0434\u043b\u044f \u044d\u0442\u043e\u0433\u043e \u0431\u043b\u043e\u043a\u0430, \u043c\u043e\u0436\u043d\u043e \u0432\u043e\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c\u0441\u044f \u0441\u0438\u043d\u0442\u0430\u043a\u0441\u0438\u0441\u043e\u043c <code>:<\/code>. \u0422\u0430\u043a, \u0432\u00a0\u0442\u043e\u0439\u00a0\u0436\u0435 \u0441\u0438\u0442\u0443\u0430\u0446\u0438\u0438 \u044f\u00a0\u043c\u043e\u0433\u0443 \u043f\u043e\u043b\u0443\u0447\u0438\u0442\u044c \u0442\u0430\u043a\u043e\u0439\u00a0\u0436\u0435 \u0432\u044b\u0432\u043e\u0434, \u0432\u044b\u043f\u043e\u043b\u043d\u0438\u0432 <code>git blame -L : 'class LocalFile' gitbutler-ui\/src\/lib\/vbranches\/types.ts<\/code>. \u0412\u043c\u0435\u0441\u0442\u043e <code>'class LocalFile'<\/code> \u043c\u043e\u0436\u043d\u043e \u043f\u043e\u0434\u0441\u0442\u0430\u0432\u0438\u0442\u044c \u0438\u043c\u044f \u0444\u0443\u043d\u043a\u0446\u0438\u0438 \u0438\u043b\u0438 \u0447\u0442\u043e-\u0442\u043e \u0435\u0449\u0451.<\/p>\n<p>  <\/p>\n<p>\u0414\u0440\u0443\u0433\u0430\u044f \u0432\u0435\u0449\u044c, \u043a\u043e\u0442\u043e\u0440\u0443\u044e \u043c\u043e\u0436\u043d\u043e \u0441\u0434\u0435\u043b\u0430\u0442\u044c, \u0447\u0442\u043e\u0431\u044b \u0443\u0432\u0438\u0434\u0435\u0442\u044c \u043f\u043e\u0445\u043e\u0436\u0443\u044e \u0438\u043d\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u044e \u043f\u043e-\u0434\u0440\u0443\u0433\u043e\u043c\u0443,\u00a0\u2014 \u0437\u0430\u043f\u0443\u0441\u0442\u0438\u0442\u044c <code>git log<\/code> \u0441\u00a0\u043f\u043e\u0445\u043e\u0436\u0438\u043c\u0438 \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u0430\u043c\u0438. \u042d\u0442\u043e \u0434\u0430\u0441\u0442 \u0432\u0430\u043c \u0432\u0441\u0435 \u043a\u043e\u043c\u043c\u0438\u0442\u044b, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u0432\u00a0\u043f\u043e\u0441\u043b\u0435\u0434\u043d\u0438\u0439 \u0440\u0430\u0437 \u043a\u0430\u0441\u0430\u043b\u0438\u0441\u044c \u0437\u0430\u0434\u0430\u043d\u043d\u043e\u0439 \u043e\u0431\u043b\u0430\u0441\u0442\u0438 \u0444\u0430\u0439\u043b\u0430.<\/p>\n<p>  <\/p>\n<p>\u041d\u0430\u043f\u0440\u0438\u043c\u0435\u0440, <code>git log -L28,43:gitbutler-ui\/src\/lib\/vbranches\/types.ts<\/code> \u0434\u0430\u0441\u0442 \u0432\u0430\u043c \u0447\u0442\u043e-\u0442\u043e \u0432\u0440\u043e\u0434\u0435 \u044d\u0442\u043e\u0433\u043e:<\/p>\n<p>  <\/p>\n<p><img decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w1560\/getpro\/habr\/post_images\/1ce\/29c\/312\/1ce29c312b89d66616da05a1a9a8cccf.png\" data-src=\"https:\/\/habrastorage.org\/getpro\/habr\/post_images\/1ce\/29c\/312\/1ce29c312b89d66616da05a1a9a8cccf.png\"\/><\/p>\n<p>  <\/p>\n<p>\u0412\u043c\u0435\u0441\u0442\u043e \u0443\u043f\u043e\u0440\u044f\u0434\u043e\u0447\u0438\u0432\u0430\u043d\u0438\u044f \u043f\u043e\u00a0\u0441\u0442\u0440\u043e\u043a\u0430\u043c, \u043e\u043f\u0446\u0438\u044f <code>-L<\/code> \u043a\u0430\u043a \u0431\u0443\u0434\u0442\u043e \u0441\u043e\u0431\u0438\u0440\u0430\u0435\u0442 \u0432\u0441\u0435 \u043a\u043e\u043c\u043c\u0438\u0442\u044b <code>git blame<\/code>, \u0430\u00a0\u0437\u0430\u0442\u0435\u043c \u043f\u043e\u043a\u0430\u0437\u044b\u0432\u0430\u0435\u0442 \u043a\u043e\u043c\u043c\u0438\u0442\u044b \u0441\u00a0\u043a\u043e\u0434\u043e\u043c, \u0432\u00a0\u043a\u0430\u0436\u0434\u043e\u043c \u0438\u0437\u00a0\u043a\u043e\u0442\u043e\u0440\u044b\u0445 \u043c\u0435\u043d\u044f\u043b\u0441\u044f \u0437\u0430\u0434\u0430\u043d\u043d\u044b\u0439 \u0431\u043b\u043e\u043a. \u0412\u00a0\u043e\u0441\u043d\u043e\u0432\u043d\u043e\u043c \u044d\u0442\u043e \u0442\u0435\u00a0\u0436\u0435 \u0434\u0430\u043d\u043d\u044b\u0435, \u043d\u043e\u00a0\u0432\u00a0\u0434\u0440\u0443\u0433\u043e\u043c \u0444\u043e\u0440\u043c\u0430\u0442\u0435, \u0431\u043e\u043b\u044c\u0448\u0435 \u043f\u043e\u0445\u043e\u0436\u0435\u043c \u043d\u0430\u00a0\u0440\u0430\u0441\u0441\u043a\u0430\u0437, \u043a\u0430\u043a \u044d\u0442\u043e\u0442 \u043a\u043e\u0434 \u0441\u043e\u0431\u0438\u0440\u0430\u043b\u0441\u044f \u0432\u043e\u0435\u0434\u0438\u043d\u043e.<a name=\"three\"><\/a><\/p>\n<p>  <\/p>\n<h2 id=\"git-blame-sotslezhivaniem\"><code>git blame<\/code> \u0441\u00a0\u043e\u0442\u0441\u043b\u0435\u0436\u0438\u0432\u0430\u043d\u0438\u0435\u043c<\/h2>\n<p>  <\/p>\n<p>\u041e\u0434\u043d\u0430 \u043d\u0430\u00a0\u0441\u0430\u043c\u043e\u043c \u0434\u0435\u043b\u0435 \u043d\u0435\u00a0\u043e\u0447\u0435\u043d\u044c \u0445\u043e\u0440\u043e\u0448\u0430\u044f \u0448\u0442\u0443\u043a\u0430 \u0432\u00a0\u0440\u0430\u0431\u043e\u0442\u0435 \u0441\u00a0blame \u0447\u0435\u0440\u0435\u0437 GUI \u0437\u0430\u043a\u043b\u044e\u0447\u0430\u0435\u0442\u0441\u044f \u0432\u00a0\u0442\u043e\u043c, \u0447\u0442\u043e CLI \u043e\u0431\u043b\u0430\u0434\u0430\u0435\u0442 \u0433\u043e\u0440\u0430\u0437\u0434\u043e \u0431\u043e\u043b\u0435\u0435 \u043c\u043e\u0449\u043d\u044b\u043c\u0438 \u0438\u043d\u0441\u0442\u0440\u0443\u043c\u0435\u043d\u0442\u0430\u043c\u0438, \u0447\u0442\u043e\u0431\u044b \u043d\u0430\u0439\u0442\u0438 \u0447\u0442\u043e-\u0442\u043e \u0431\u043b\u0438\u0436\u0435 \u043a\u00a0\u0440\u0435\u0430\u043b\u044c\u043d\u043e\u0439 \u0438\u0441\u0442\u043e\u0440\u0438\u0438, \u0441\u0442\u043e\u044f\u0449\u0435\u0439 \u0437\u0430\u00a0\u0432\u0430\u0448\u0438\u043c \u043a\u043e\u0434\u043e\u043c. \u0415\u0441\u0442\u044c \u043c\u043d\u043e\u0433\u043e \u0441\u0438\u0442\u0443\u0430\u0446\u0438\u0439, \u0433\u0434\u0435 \u044d\u0442\u043e \u0434\u0435\u0439\u0441\u0442\u0432\u0438\u0442\u0435\u043b\u044c\u043d\u043e \u0446\u0435\u043d\u043d\u043e.<\/p>\n<p>  <\/p>\n<p>\u041f\u0435\u0440\u0432\u0430\u044f\u00a0\u2014 \u0438\u0433\u043d\u043e\u0440\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u0435 \u0438\u0437\u043c\u0435\u043d\u0435\u043d\u0438\u0439 \u043f\u0440\u043e\u0431\u0435\u043b\u043e\u0432. \u041d\u0435\u043a\u043e\u0442\u043e\u0440\u044b\u0435 GUI \u0438\u0433\u043d\u043e\u0440\u0438\u0440\u0443\u044e\u0442 \u0438\u0445, \u043d\u043e\u00a0\u043d\u0435\u00a0\u0432\u0441\u0435. \u0415\u0441\u043b\u0438 \u0432\u044b\u00a0\u043f\u0440\u043e\u0441\u0442\u043e \u043f\u043e\u0439\u0434\u0451\u0442\u0435 \u0438\u00a0\u0432\u043d\u0435\u0434\u0440\u0438\u0442\u0435 \u0444\u0430\u0439\u043b <code>prettierrc<\/code>\u00a0\u2014 <strong>\u0431\u0430\u0445<\/strong>,\u00a0\u0442\u0435\u043f\u0435\u0440\u044c \u0432\u044b\u00a0\u0432\u043b\u0430\u0434\u0435\u043b\u0435\u0446 \u0442\u043e\u043d\u043d\u044b \u0441\u0442\u0440\u043e\u043a \u043a\u043e\u0434\u0430. \u0421\u00a0\u043e\u043f\u0446\u0438\u0435\u0439 git blame <code>-w<\/code> \u044d\u0442\u0438 \u0442\u0438\u043f\u044b \u0438\u0437\u043c\u0435\u043d\u0435\u043d\u0438\u0439 \u043f\u0440\u043e\u0431\u0435\u043b\u044c\u043d\u044b\u0445 \u0441\u0438\u043c\u0432\u043e\u043b\u043e\u0432 \u0438\u0433\u043d\u043e\u0440\u0438\u0440\u0443\u044e\u0442\u0441\u044f.<\/p>\n<p>  <\/p>\n<p>\u0414\u0440\u0443\u0433\u0430\u044f \u043e\u0442\u043b\u0438\u0447\u043d\u0430\u044f \u043e\u043f\u0446\u0438\u044f, \u043a\u043e\u0442\u043e\u0440\u0430\u044f \u043e\u0442\u0441\u043b\u0435\u0436\u0438\u0432\u0430\u0435\u0442 \u043f\u0435\u0440\u0435\u043c\u0435\u0449\u0435\u043d\u0438\u0435 \u043a\u043e\u0434\u0430 \u043c\u0435\u0436\u0434\u0443 \u0444\u0430\u0439\u043b\u0430\u043c\u0438 \u0432\u00a0\u043a\u043e\u043c\u043c\u0438\u0442\u0435,\u00a0\u2014 \u044d\u0442\u043e<code>-C<\/code>. \u041a\u043e\u0433\u0434\u0430 \u0432\u044b\u00a0\u0432\u044b\u043f\u043e\u043b\u043d\u0438\u0442\u0435 \u0440\u0435\u0444\u0430\u043a\u0442\u043e\u0440\u0438\u043d\u0433 \u0444\u0443\u043d\u043a\u0446\u0438\u0438 \u0438\u0437\u00a0\u043e\u0434\u043d\u043e\u0433\u043e \u0444\u0430\u0439\u043b\u0430 \u0432\u00a0\u0434\u0440\u0443\u0433\u043e\u0439, \u043e\u0431\u044b\u0447\u043d\u0430\u044f \u043a\u043e\u043c\u0430\u043d\u0434\u0430 <code>git blame<\/code> \u043f\u0440\u043e\u0441\u0442\u043e \u043f\u043e\u043a\u0430\u0436\u0435\u0442 \u0432\u0430\u0441 \u043a\u0430\u043a \u0430\u0432\u0442\u043e\u0440\u0430 \u043d\u043e\u0432\u043e\u0433\u043e \u0444\u0430\u0439\u043b\u0430, \u043d\u043e\u00a0\u043e\u043f\u0446\u0438\u044f <code>-C<\/code> \u043e\u0442\u0441\u043b\u0435\u0434\u0438\u0442 \u0434\u0432\u0438\u0436\u0435\u043d\u0438\u0435 \u043a\u043e\u0434\u0430 \u0438\u00a0\u043f\u043e\u043a\u0430\u0436\u0435\u0442 \u043f\u043e\u0441\u043b\u0435\u0434\u043d\u0435\u0433\u043e, \u043a\u0442\u043e \u0438\u0437\u043c\u0435\u043d\u0438\u043b \u0441\u0442\u0440\u043e\u043a\u0438.<\/p>\n<p>  <\/p>\n<p>\u041b\u044e\u0431\u044b\u0435 \u0438\u0437\u00a0\u044d\u0442\u0438\u0445 \u0434\u0430\u043d\u043d\u044b\u0445 \u043c\u043e\u0433\u0443\u0442 \u043e\u043a\u0430\u0437\u0430\u0442\u044c\u0441\u044f \u0442\u0435\u043c, \u0447\u0442\u043e \u0432\u044b\u00a0\u0438\u0449\u0435\u0442\u0435, \u043d\u043e\u00a0\u044f\u00a0\u0431\u044b \u0441\u043a\u0430\u0437\u0430\u043b, \u0447\u0430\u0449\u0435 \u0432\u0441\u0435\u0433\u043e \u0432\u043e\u0437\u043d\u0438\u043a\u0430\u0435\u0442 \u043f\u043e\u0441\u043b\u0435\u0434\u043d\u044f\u044f \u0441\u0438\u0442\u0443\u0430\u0446\u0438\u044f. \u0415\u0441\u043b\u0438 \u0432\u044b\u00a0\u0445\u043e\u0442\u0438\u0442\u0435, \u0447\u0442\u043e\u0431\u044b Git \u0441\u0442\u0430\u0440\u0430\u043b\u0441\u044f \u0435\u0449\u0451 \u0443\u0441\u0435\u0440\u0434\u043d\u0435\u0435 (\u0438\u0449\u0435\u0442\u0435 \u0434\u0432\u0438\u0436\u0435\u043d\u0438\u0435 \u0432\u00a0\u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u0438\u0445 \u0438\u043b\u0438 \u0432\u043e\u00a0<em>\u0432\u0441\u0435\u0445<\/em> \u043a\u043e\u043c\u043c\u0438\u0442\u0430\u0445), \u0442\u043e\u00a0\u043c\u043e\u0436\u0435\u0442\u0435 \u0443\u043a\u0430\u0437\u0430\u0442\u044c \u043e\u043f\u0446\u0438\u044e <code>-C<\/code> \u0434\u043e\u00a0\u0442\u0440\u0451\u0445 \u0440\u0430\u0437.<\/p>\n<p>  <\/p>\n<p>\u041a\u0440\u043e\u043c\u0435 \u0442\u043e\u0433\u043e, \u0432\u0430\u0448 GUI \u043d\u0435\u00a0\u0434\u0435\u043b\u0430\u0435\u0442 \u044d\u0442\u043e\u0433\u043e (\u0441\u043a\u043e\u0440\u0435\u0435 \u0432\u0441\u0435\u0433\u043e, \u044f\u00a0\u043d\u0435\u00a0\u043c\u043e\u0433\u0443 \u0433\u043e\u0432\u043e\u0440\u0438\u0442\u044c \u043e\u0431\u043e \u0432\u0441\u0435\u0445). \u0414\u0430\u0432\u0430\u0439\u0442\u0435 \u043f\u043e\u0441\u043c\u043e\u0442\u0440\u0438\u043c \u043d\u0430\u00a0\u0432\u044b\u0432\u043e\u0434 <code>git blame<\/code> \u0438\u0437\u00a0\u043f\u0440\u0435\u0434\u044b\u0434\u0443\u0449\u0435\u0433\u043e \u043f\u0440\u0438\u043c\u0435\u0440\u0430 \u0432\u00a0GitLens VS\u00a0Code:<\/p>\n<p>  <\/p>\n<p><img decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w1560\/getpro\/habr\/post_images\/8f0\/654\/ec1\/8f0654ec1aa7bb70904716b365a802ab.png\" data-src=\"https:\/\/habrastorage.org\/getpro\/habr\/post_images\/8f0\/654\/ec1\/8f0654ec1aa7bb70904716b365a802ab.png\"\/><br \/>  <em><code>git blame<\/code> \u0432\u00a0\u043f\u043b\u0430\u0433\u0438\u043d\u0435 VS\u00a0Code GitLens<\/em><\/p>\n<p>  <\/p>\n<p>\u041e\u043a, \u0432\u044b\u0433\u043b\u044f\u0434\u0438\u0442 \u0445\u043e\u0440\u043e\u0448\u043e. \u0411\u043e\u043b\u044c\u0448\u0443\u044e \u0447\u0430\u0441\u0442\u044c \u044d\u0442\u043e\u0433\u043e \u043a\u043e\u0434\u0430, \u043a\u0430\u0436\u0435\u0442\u0441\u044f, \u043d\u0430\u043f\u0438\u0441\u0430\u043b <a href=\"https:\/\/github.com\/krlvi\" rel=\"nofollow noopener noreferrer\">\u041a\u0438\u0440\u0438\u043b<\/a>. \u0422\u0435\u043f\u0435\u0440\u044c \u0434\u0430\u0432\u0430\u0439\u0442\u0435 \u043f\u043e\u0441\u043c\u043e\u0442\u0440\u0438\u043c \u043d\u0430\u00a0\u0442\u043e\u0442\u00a0\u0436\u0435 \u0431\u043b\u043e\u043a \u0441\u00a0<code>git blame -w -C -C -C<\/code>:<\/p>\n<p>  <\/p>\n<p><img decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w1560\/getpro\/habr\/post_images\/8a7\/e7d\/e2f\/8a7e7de2f717739307c2cbba4bc8422b.png\" data-src=\"https:\/\/habrastorage.org\/getpro\/habr\/post_images\/8a7\/e7d\/e2f\/8a7e7de2f717739307c2cbba4bc8422b.png\"\/><br \/>  <em><code>git blame -C -C -C<\/code><\/em><\/p>\n<p>  <\/p>\n<p>Git \u0441\u043b\u0435\u0434\u043e\u0432\u0430\u043b \u0437\u0430\u00a0\u044d\u0442\u0438\u043c \u043a\u0443\u0441\u043a\u043e\u043c \u043a\u043e\u0434\u0430 \u043e\u0442\u00a0\u0444\u0430\u0439\u043b\u0430 \u043a\u00a0\u0444\u0430\u0439\u043b\u0443 \u0432\u00a0\u0442\u0435\u0447\u0435\u043d\u0438\u0435 \u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u0438\u0445 \u043f\u0435\u0440\u0435\u0438\u043c\u0435\u043d\u043e\u0432\u0430\u043d\u0438\u0439.<\/p>\n<p>  <\/p>\n<p>\u041a\u0440\u043e\u043c\u0435 \u0442\u043e\u0433\u043e, \u041a\u0438\u0440\u0438\u043b \u043d\u0430\u00a0\u0441\u0430\u043c\u043e\u043c \u0434\u0435\u043b\u0435 \u0432\u043b\u0430\u0434\u0435\u0435\u0442 \u0432\u0441\u0435\u0433\u043e \u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u0438\u043c\u0438 \u0441\u0442\u0440\u043e\u043a\u0430\u043c\u0438, \u0431\u043e\u043b\u044c\u0448\u0438\u0435 \u0435\u0433\u043e \u043a\u0443\u0441\u043a\u0438 \u043d\u0430\u00a0\u0441\u0430\u043c\u043e\u043c \u0434\u0435\u043b\u0435 \u043d\u0430\u043f\u0438\u0441\u0430\u043b \u041c\u0430\u0442\u0442\u0438\u0430\u0441. \u0415\u0441\u043b\u0438 \u0437\u0430\u0445\u043e\u0447\u0435\u0442\u0441\u044f \u0440\u0430\u0437\u0443\u0437\u043d\u0430\u0442\u044c \u043e\u00a0\u043d\u0438\u0445, \u0433\u043e\u0440\u0430\u0437\u0434\u043e \u043b\u0443\u0447\u0448\u0435 \u0441\u043f\u0440\u043e\u0441\u0438\u0442\u044c \u041c\u0430\u0442\u0442\u0438\u0430\u0441\u0430, \u0430\u00a0\u043d\u0435\u00a0\u041a\u0438\u0440\u0438\u043b\u0430, \u043a\u0430\u043a \u043f\u0440\u0435\u0434\u043f\u043e\u043b\u0430\u0433\u0430\u0435\u0442 \u043d\u0430\u0448 GUI.<a name=\"four\"><\/a><\/p>\n<p>  <\/p>\n<h2 id=\"git-diff-po-slovam-vmesto-strok\"><code>git diff<\/code> \u043f\u043e \u0441\u043b\u043e\u0432\u0430\u043c \u0432\u043c\u0435\u0441\u0442\u043e \u0441\u0442\u0440\u043e\u043a<\/h2>\n<p>  <\/p>\n<p>\u042d\u0442\u043e \u043d\u0435\u0432\u0435\u0440\u043e\u044f\u0442\u043d\u043e \u0432\u0442\u043e\u0440\u0438\u0447\u043d\u043e, \u0430\u00a0\u0432\u00a0\u043d\u0435\u043a\u043e\u0442\u043e\u0440\u044b\u0445 \u0433\u0440\u0430\u0444\u0438\u0447\u0435\u0441\u043a\u0438\u0445 \u0438\u043d\u0442\u0435\u0440\u0444\u0435\u0439\u0441\u0430\u0445 \u0435\u0441\u0442\u044c \u043f\u0440\u0438\u044f\u0442\u043d\u044b\u0435 \u0432\u0435\u0440\u0441\u0438\u0438. \u042f\u00a0\u043d\u0430\u0445\u043e\u0436\u0443 GitHub \u043b\u0443\u0447\u0448\u0435 \u0442\u043e\u0433\u043e, \u0447\u0442\u043e \u0441\u043e\u0431\u0438\u0440\u0430\u044e\u0441\u044c \u043f\u043e\u043a\u0430\u0437\u0430\u0442\u044c, \u0432\u0435\u0434\u044c \u043e\u043d\u00a0\u0430\u043a\u043a\u0443\u0440\u0430\u0442\u043d\u043e \u0432\u044b\u043f\u043e\u043b\u043d\u044f\u0435\u0442 \u043a\u043e\u043c\u0430\u043d\u0434\u0443 \u0432\u00a0GUI \u0438\u00a0\u0432\u00a0CLI. \u041d\u043e\u00a0\u0435\u0441\u043b\u0438 \u0432\u044b\u00a0<strong>\u0437\u0430\u043f\u0443\u0441\u043a\u0430\u0435\u0442\u0435<\/strong> <code>git diff<\/code> \u0432\u00a0CLI \u0434\u043b\u044f \u0441\u0442\u0440\u043e\u043a\u0438 \u0441\u00a0\u043d\u0435\u0431\u043e\u043b\u044c\u0448\u0438\u043c \u0438\u0437\u043c\u0435\u043d\u0435\u043d\u0438\u0435\u043c, \u0442\u043e\u00a0\u043c\u043e\u0436\u0435\u0442\u0435 \u0438\u0437\u043c\u0435\u043d\u0438\u0442\u044c \u0444\u043e\u0440\u043c\u0430\u0442 Git \u043f\u043e\u00a0\u0443\u043c\u043e\u043b\u0447\u0430\u043d\u0438\u044e \u043d\u0430\u00a0\u0441\u043b\u043e\u0432\u0430, \u0430\u00a0\u043d\u0435\u00a0\u043d\u0430\u00a0\u0441\u0442\u0440\u043e\u043a\u0438, \u043e\u043f\u0446\u0438\u0435\u0439<code>--word-diff<\/code>:<\/p>\n<p>  <\/p>\n<p><img decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w1560\/getpro\/habr\/post_images\/b7c\/6d3\/a63\/b7c6d3a63782e355370b34068c6ce0b2.png\" data-src=\"https:\/\/habrastorage.org\/getpro\/habr\/post_images\/b7c\/6d3\/a63\/b7c6d3a63782e355370b34068c6ce0b2.png\"\/><br \/>  <em>\u043d\u043e\u0440\u043c\u0430\u043b\u044c\u043d\u044b\u0439, \u043f\u043e\u0441\u0442\u0440\u043e\u0447\u043d\u044b\u0439 <code>git diff<\/code><\/em><\/p>\n<p>  <\/p>\n<p><img decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w1560\/getpro\/habr\/post_images\/3dd\/e66\/48c\/3dde6648ccec2a481a0f48fd105d6d8a.png\" data-src=\"https:\/\/habrastorage.org\/getpro\/habr\/post_images\/3dd\/e66\/48c\/3dde6648ccec2a481a0f48fd105d6d8a.png\"\/><br \/>  <em>\u043e\u0441\u043e\u0431\u0435\u043d\u043d\u043e \u043a\u0440\u0443\u0442\u043e\u0439 <code>git diff --word-diff<\/code><\/em><a name=\"five\"><\/a><\/p>\n<p>  <\/p>\n<h2 id=\"pamyat-o-razreshenii-konflikta\">\u041f\u0430\u043c\u044f\u0442\u044c \u043e \u0440\u0430\u0437\u0440\u0435\u0448\u0435\u043d\u0438\u0438 \u043a\u043e\u043d\u0444\u043b\u0438\u043a\u0442\u0430<\/h2>\n<p>  <\/p>\n<p>\u041d\u0430\u043a\u043e\u043d\u0435\u0446, \u0435\u0441\u043b\u0438 \u0432\u044b\u00a0\u0447\u0430\u0441\u0442\u043e \u0432\u044b\u043f\u043e\u043b\u043d\u044f\u0435\u0442\u0435 <code>git rebase<\/code> \u0438\u043b\u0438 <code>git cherry-pick<\/code> \u0438\u00a0\u0441\u0442\u0430\u043b\u043a\u0438\u0432\u0430\u0435\u0442\u0435\u0441\u044c \u0441\u00a0\u043e\u0434\u043d\u0438\u043c \u0438\u00a0\u0442\u0435\u043c\u00a0\u0436\u0435 \u043a\u043e\u043d\u0444\u043b\u0438\u043a\u0442\u043e\u043c \u0447\u0430\u0449\u0435 \u043e\u0434\u043d\u043e\u0433\u043e \u0440\u0430\u0437\u0430, \u0442\u043e \u043c\u043e\u0436\u043d\u043e \u0432\u043a\u043b\u044e\u0447\u0438\u0442\u044c \u0444\u0443\u043d\u043a\u0446\u0438\u044e \u0437\u0430\u043f\u043e\u043c\u0438\u043d\u0430\u043d\u0438\u044f \u0438\u00a0\u0440\u0430\u0437\u0440\u0435\u0448\u0435\u043d\u0438\u044f \u043a\u043e\u043d\u0444\u043b\u0438\u043a\u0442\u0430. \u0415\u0441\u043b\u0438 Git \u0434\u0432\u0430\u0436\u0434\u044b \u0438\u00a0\u0431\u043e\u043b\u0435\u0435 \u0440\u0430\u0437 \u0443\u0432\u0438\u0434\u0438\u0442 \u043e\u0434\u0438\u043d \u0438\u00a0\u0442\u043e\u0442\u00a0\u0436\u0435 \u043a\u043e\u043d\u0444\u043b\u0438\u043a\u0442, \u0442\u043e\u00a0\u0440\u0435\u0448\u0438\u0442 \u0435\u0433\u043e <em>\u0430\u0432\u0442\u043e\u043c\u0430\u0442\u0438\u0447\u0435\u0441\u043a\u0438<\/em>.<\/p>\n<p>  <\/p>\n<p>\u042d\u0442\u0443 \u0444\u0443\u043d\u043a\u0446\u0438\u044e \u043c\u043e\u0436\u043d\u043e \u043b\u0435\u0433\u043a\u043e \u0432\u043a\u043b\u044e\u0447\u0438\u0442\u044c \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u043e\u0439 \u043a\u043e\u043d\u0444\u0438\u0433\u0443\u0440\u0430\u0446\u0438\u0438 <code>rerere.enabled<\/code>. \u0414\u0430\u043b\u0435\u0435 \u043c\u043e\u0436\u043d\u043e \u043f\u043e\u043f\u0440\u043e\u0441\u0438\u0442\u044c Git \u043d\u0430\u0441\u0442\u0440\u043e\u0438\u0442\u044c \u0434\u043b\u044f \u0432\u0430\u0441 <a href=\"https:\/\/git-scm.com\/docs\/git-config#Documentation\/git-config.txt-rerereautoUpdate\" rel=\"nofollow noopener noreferrer\">\u0430\u0432\u0442\u043e\u043c\u0430\u0442\u0438\u0447\u0435\u0441\u043a\u0438\u0439 \u0441\u0442\u0435\u0439\u0434\u0436\u0438\u043d\u0433<\/a> \u0447\u0435\u0440\u0435\u0437 <code>rerere.autoUpdate<\/code>:<\/p>\n<p>  <\/p>\n<pre><code class=\"bash\">git config --global rerere.enabled true git config --global rerere.autoUpdate true<\/code><\/pre>\n<p>  <\/p>\n<p><img decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w1560\/getpro\/habr\/post_images\/8aa\/78c\/229\/8aa78c2296c71963a11808dd4ff5b2b9.png\" data-src=\"https:\/\/habrastorage.org\/getpro\/habr\/post_images\/8aa\/78c\/229\/8aa78c2296c71963a11808dd4ff5b2b9.png\"\/><br \/>  <em>Git \u043d\u0430\u0432\u0441\u0435\u0433\u0434\u0430 \u0437\u0430\u043f\u043e\u043c\u043d\u0438\u043b \u043a\u043e\u043d\u0444\u043b\u0438\u043a\u0442<\/em><\/p>\n<p>  <\/p>\n<p>\u0417\u0430\u0442\u0435\u043c, \u0432\u00a0\u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u0439 \u0440\u0430\u0437, \u043a\u043e\u0433\u0434\u0430 \u0432\u044b\u00a0\u0441\u0442\u043e\u043b\u043a\u043d\u0451\u0442\u0435\u0441\u044c \u0441\u00a0\u043a\u043e\u043d\u0444\u043b\u0438\u043a\u0442\u043e\u043c, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u0440\u0435\u0448\u0430\u043b\u0438 \u0440\u0430\u043d\u044c\u0448\u0435,\u00a0\u2014 \u043c\u0430\u0433\u0438\u044f!<br \/>  <img decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w1560\/getpro\/habr\/post_images\/8c6\/df5\/6b2\/8c6df56b2d27f646abf0cc06d579fc54.png\" data-src=\"https:\/\/habrastorage.org\/getpro\/habr\/post_images\/8c6\/df5\/6b2\/8c6df56b2d27f646abf0cc06d579fc54.png\"\/><br \/>  <em>\u0430\u0432\u0442\u043e\u043c\u0430\u0442\u0438\u0447\u0435\u0441\u043a\u043e\u0435 \u0438\u0441\u043f\u0440\u0430\u0432\u043b\u0435\u043d\u0438\u0435<\/em><\/p>\n<p>  <\/p>\n<h2 id=\"chto-dalshe\">\u0427\u0442\u043e \u0434\u0430\u043b\u044c\u0448\u0435?<\/h2>\n<p>  <\/p>\n<p>\u041e\u043f\u044f\u0442\u044c\u00a0\u0436\u0435, \u0432\u0441\u0451 \u044d\u0442\u043e \u0443\u0436\u0435 \u0434\u0430\u0432\u043d\u043e \u0435\u0441\u0442\u044c \u0432\u00a0Git, \u043d\u043e\u00a0\u0435\u0441\u043b\u0438 \u0432\u044b \u0447\u0435\u0433\u043e-\u0442\u043e\u00a0\u043d\u0435\u00a0\u0437\u043d\u0430\u043b\u0438, \u0442\u043e\u00a0\u0442\u0435\u043f\u0435\u0440\u044c \u0437\u043d\u0430\u0435\u0442\u0435. \u0414\u0430\u043b\u0435\u0435\u00a0\u2014 <a href=\"https:\/\/habr.com\/ru\/articles\/794252\/\">\u043d\u043e\u0432\u044b\u0435 \u0448\u0442\u0443\u043a\u0438 \u0432\u00a0Git<\/a>.<\/p>\n<p>  <\/p>\n<hr\/>\n<p>  <\/p>\n<p><em>P.S. \u0421\u0441\u044b\u043b\u043a\u0430 \u043d\u0430 <a href=\"https:\/\/www.youtube.com\/watch?v=aolI_Rz0ZqY\" rel=\"nofollow noopener noreferrer\">\u0432\u0438\u0434\u0435\u043e-\u0432\u0435\u0440\u0441\u0438\u044e<\/a> \u043e\u0442 <a href=\"https:\/\/habr.com\/ru\/users\/domix32\/\" class=\"user_link\">domix32<\/a> <\/em><\/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\/793488\/\"> https:\/\/habr.com\/ru\/articles\/793488\/<\/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 <a href=\"https:\/\/gitbutler.com\/\" rel=\"nofollow noopener noreferrer\">\u043d\u043e\u0432\u043e\u0433\u043e \u043a\u043b\u0438\u0435\u043d\u0442\u0430 GitButler<\/a>. \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 \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>\u0412\u00a0\u043f\u0435\u0440\u0432\u043e\u043c \u043f\u043e\u0441\u0442\u0435 \u0438\u0437\u00a0\u044d\u0442\u043e\u0439 <a href=\"https:\/\/blog.gitbutler.com\/git-tips-and-tricks\/\" rel=\"nofollow noopener noreferrer\">\u043a\u043e\u0440\u043e\u0442\u043a\u043e\u0439 \u0441\u0435\u0440\u0438\u0438 \u043f\u043e\u00a0Git<\/a> \u044f\u00a0\u0445\u043e\u0442\u0435\u043b \u043d\u0430\u0447\u0430\u0442\u044c \u0441\u00a0\u0432\u0435\u0449\u0435\u0439, \u0443\u0436\u0435 \u0441\u0443\u0449\u0435\u0441\u0442\u0432\u0443\u044e\u0449\u0438\u0445 \u043a\u0430\u043a\u043e\u0435-\u0442\u043e \u0432\u0440\u0435\u043c\u044f. \u041f\u0440\u0438 \u044d\u0442\u043e\u043c \u043a\u0430\u0436\u0435\u0442\u0441\u044f, \u0447\u0442\u043e \u043c\u043d\u043e\u0433\u0438\u0435 \u043b\u044e\u0434\u0438 \u043e\u00a0\u043d\u0438\u0445 \u043d\u0435\u00a0\u0437\u043d\u0430\u044e\u0442 \u0438\u043b\u0438 \u043d\u0435\u00a0\u0443\u043c\u0435\u044e\u0442 \u0438\u043c\u0438 \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c\u0441\u044f. \u0412\u00a0\u043d\u0438\u0445 \u043d\u0435\u0442 \u043d\u0438\u0447\u0435\u0433\u043e \u043d\u043e\u0432\u043e\u0433\u043e, \u043d\u043e\u00a0\u044f\u00a0\u043d\u0430\u0445\u043e\u0436\u0443 \u0438\u0445\u00a0\u043f\u043e\u043b\u0435\u0437\u043d\u044b\u043c\u0438 \u0438, \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e, \u043d\u0435 \u0441\u043e\u0432\u0441\u0435\u043c \u043e\u0441\u0432\u0435\u0449\u0451\u043d\u043d\u044b\u043c\u0438. \u042f\u00a0\u043f\u0440\u043e\u0441\u0442\u043e \u0445\u043e\u0447\u0443 \u0440\u0430\u0441\u0441\u043a\u0430\u0437\u0430\u0442\u044c \u043e:<\/p>\n<p>  <\/p>\n<ul>\n<li><a href=\"https:\/\/habr.com\/ru\/articles\/793488\/#one\">\u0443\u0441\u043b\u043e\u0432\u043d\u043e\u0439 \u043a\u043e\u043d\u0444\u0438\u0433\u0443\u0440\u0430\u0446\u0438\u0438<\/a>;<\/li>\n<li><a href=\"https:\/\/habr.com\/ru\/articles\/793488\/#two\"><code>git blame<\/code> \u0438\u00a0<code>git log<\/code> \u0441\u00a0\u0434\u0438\u0430\u043f\u0430\u0437\u043e\u043d\u0430\u043c\u0438 \u0441\u0442\u0440\u043e\u043a<\/a>;<\/li>\n<li><a href=\"https:\/\/habr.com\/ru\/articles\/793488\/#three\"><code>git blame<\/code> \u0441\u00a0\u043e\u0442\u0441\u043b\u0435\u0436\u0438\u0432\u0430\u043d\u0438\u0435\u043c<\/a>;<\/li>\n<li><a href=\"https:\/\/habr.com\/ru\/articles\/793488\/#four\"><code>git diff<\/code> \u043f\u043e\u00a0\u0441\u043b\u043e\u0432\u0430\u043c \u0432\u043c\u0435\u0441\u0442\u043e \u0441\u0442\u0440\u043e\u043a<\/a>;<\/li>\n<li><a href=\"https:\/\/habr.com\/ru\/articles\/793488\/#five\">\u0437\u0430\u043f\u043e\u043c\u0438\u043d\u0430\u043d\u0438\u0438 \u0440\u0430\u0437\u0440\u0435\u0448\u0435\u043d\u0438\u044f \u043a\u043e\u043d\u0444\u043b\u0438\u043a\u0442\u043e\u0432<\/a>.<\/li>\n<\/ul>\n<p>  <\/p>\n<p>\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-368116","post","type-post","status-publish","format-standard","hentry"],"_links":{"self":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/368116","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=368116"}],"version-history":[{"count":0,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/368116\/revisions"}],"wp:attachment":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=368116"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=368116"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=368116"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}