{"id":343561,"date":"2023-01-06T09:00:58","date_gmt":"2023-01-06T09:00:58","guid":{"rendered":"http:\/\/savepearlharbor.com\/?p=343561"},"modified":"-0001-11-30T00:00:00","modified_gmt":"-0001-11-29T21:00:00","slug":"","status":"publish","type":"post","link":"https:\/\/savepearlharbor.com\/?p=343561","title":{"rendered":"<span>Git: \u0418\u0433\u043d\u043e\u0440\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u0435 \u043e\u0442\u0441\u043b\u0435\u0436\u0438\u0432\u0430\u043d\u0438\u044f \u0444\u0430\u0439\u043b\u043e\u0432, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u0443\u0436\u0435 \u0435\u0441\u0442\u044c \u0432 \u0443\u0434\u0430\u043b\u0435\u043d\u043d\u043e\u043c \u0440\u0435\u043f\u043e\u0437\u0438\u0442\u043e\u0440\u0438\u0438<\/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\">\u0415\u0441\u043b\u0438 \u0432\u043d\u0435\u0441\u0442\u0438 \u0444\u0430\u0439\u043b \u0432 <b>.gitignore<\/b>, \u0442\u043e \u043e\u043d \u043d\u0435 \u0431\u0443\u0434\u0435\u0442 \u043e\u0442\u0441\u043b\u0435\u0436\u0438\u0432\u0430\u0442\u044c\u0441\u044f \u0433\u0438\u0442\u043e\u043c \u043b\u0438\u0448\u044c \u0432 \u0442\u043e\u043c \u0441\u043b\u0443\u0447\u0430\u0435, \u0435\u0441\u043b\u0438 \u044d\u0442\u043e\u0433\u043e \u0444\u0430\u0439\u043b\u0430 \u043d\u0435\u0442 \u0432 \u0443\u0434\u0430\u043b\u0435\u043d\u043d\u043e\u043c \u0440\u0435\u043f\u043e\u0437\u0438\u0442\u043e\u0440\u0438\u0438.<\/p>\n<p>  \u041d\u043e \u0435\u0441\u043b\u0438 \u0432 \u0440\u0435\u043f\u043e\u0437\u0438\u0442\u043e\u0440\u0438\u0438 \u0443\u0436\u0435 \u0435\u0441\u0442\u044c (\u043a \u043f\u0440\u0438\u043c\u0435\u0440\u0443 \u043a\u043e\u043d\u0444\u0438\u0433\u0438 \u0441\u0430\u0439\u0442\u0430), \u0430 \u043c\u044b \u043d\u0435 \u0445\u043e\u0442\u0438\u043c, \u0447\u0442\u043e\u0431\u044b \u043d\u0430\u0448\u0438 \u043b\u043e\u043a\u0430\u043b\u044c\u043d\u044b\u0435 \u043a\u043e\u043d\u0444\u0438\u0433\u0438 \u043e\u0442\u0441\u043b\u0435\u0436\u0438\u0432\u0430\u043b\u0438\u0441\u044c, \u0442\u043e \u043c\u043e\u0436\u043d\u043e \u0432\u044b\u043f\u043e\u043b\u043d\u0438\u0442\u044c \u043a\u043e\u043c\u0430\u043d\u0434\u0443:<br \/>  <code>git update-index --assume-unchanged application\/config\/database.php<\/code><\/p>\n<p>  \u043b\u0438\u0431\u043e \u0432\u0441\u044e \u043f\u0430\u043f\u043a\u0443<br \/>  <code>git update-index --assume-unchanged application\/config\/*<\/code><a name=\"habracut\"><\/a><\/p>\n<p>  \u0427\u0442\u043e\u0431\u044b \u043f\u0435\u0440\u0435\u0441\u0442\u0430\u0442\u044c \u0438\u0433\u043d\u043e\u0440\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u0438\u0437\u043c\u0435\u043d\u0435\u043d\u0438\u044f, \u043d\u0443\u0436\u043d\u043e \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440 <b>&#8212;no-assume-unchanged<\/b>.<br \/>  <code>git update-index --no-assume-unchanged application\/config\/*<\/code><\/p>\n<h4>Update: \u0415\u0441\u043b\u0438 \u043a\u043e\u043d\u0444\u0438\u0433 \u0438\u0437\u043c\u0435\u043d\u0438\u043b\u0438<\/h4>\n<p>  \u0415\u0441\u043b\u0438 \u0432\u0441\u0451 \u0436\u0435 \u043a\u0442\u043e-\u0442\u043e \u0438\u0437\u043c\u0435\u043d\u0438\u043b \u0441\u0442\u0440\u0443\u043a\u0442\u0443\u0440\u0443 \u0444\u0430\u0439\u043b\u0430 \u043a\u043e\u043d\u0444\u0438\u0433\u0430, \u0442\u043e git \u043d\u0435 \u0434\u0430\u0441\u0442 \u0441\u0434\u0435\u043b\u0430\u0442\u044c pull, \u0442.\u043a. \u0432\u0441\u0435-\u0440\u0430\u0432\u043d\u043e \u0431\u0443\u0434\u0435\u0442 \u0441\u0447\u0438\u0442\u0430\u0442\u044c, \u0447\u0442\u043e \u0444\u0430\u0439\u043b \u043a\u043e\u043d\u0444\u0438\u0433\u0430 \u0441 \u043d\u0430\u0448\u0438\u043c\u0438 \u043f\u0430\u0440\u043e\u043b\u044f\u043c\u0438 \u043e\u0442\u043b\u0438\u0447\u0430\u0435\u0442\u0441\u044f \u043e\u0442 \u0442\u043e\u0433\u043e, \u0447\u0442\u043e \u043f\u0440\u0438\u0439\u0434\u0435\u0442 \u0441 \u043a\u043e\u043c\u0430\u043d\u0434\u043e\u0439 pull.<\/p>\n<p>  \u0427\u0442\u043e\u0431\u044b \u0432\u0441\u0435-\u0442\u0430\u043a\u0438 \u043f\u043e\u043b\u0443\u0447\u0438\u0442\u044c \u043d\u043e\u0432\u044b\u0435 \u0438\u0437\u043c\u0435\u043d\u0435\u043d\u0438\u044f, \u043d\u043e \u0438 \u0441\u0432\u043e\u0438 \u043f\u0430\u0440\u043e\u043b\u0438 \u0441\u043e\u0445\u0440\u0430\u043d\u0438\u0442\u044c \u0432 \u043a\u043e\u043d\u0444\u0438\u0433\u0435 \u043d\u0443\u0436\u043d\u043e \u0441\u0434\u0435\u043b\u0430\u0442\u044c \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0435\u0435:<\/p>\n<p>  1. \u0421\u043e\u0445\u0440\u0430\u043d\u0438\u0442\u044c \u0442\u0435\u043a\u0443\u0449\u0438\u0435 \u043a\u043e\u043d\u0444\u0438\u0433\u0438 (\u0441 \u043d\u0430\u0448\u0438\u043c\u0438 \u043b\u043e\u043a\u0430\u043b\u044c\u043d\u044b\u043c\u0438 \u043f\u0430\u0440\u043e\u043b\u044f\u043c\u0438) \u0432 \u043e\u0442\u0434\u0435\u043b\u044c\u043d\u0443\u044e \u043f\u0430\u043f\u043a\u0443 \u043d\u0430\u043f\u0440\u0438\u043c\u0435\u0440.<\/p>\n<p>  2. \u041e\u0442\u043c\u0435\u043d\u0438\u0442\u044c \u0438\u0433\u043d\u043e\u0440\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u0435 \u0438\u0437\u043c\u0435\u043d\u0435\u043d\u0438\u0439 (\u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440 <code>--no-assume-unchanged<\/code>).<br \/>  <code>git update-index --no-assume-unchanged application\/config\/database.php<\/code><\/p>\n<p>  3. \u041d\u0430 \u0434\u0430\u043d\u043d\u043e\u043c \u0448\u0430\u0433\u0435 \u043a\u043e\u043c\u0430\u043d\u0434\u0430 <code>git status<\/code> \u043f\u043e\u043a\u0430\u0436\u0435\u0442, \u0447\u0442\u043e \u0444\u0430\u0439\u043b <b>application\/config\/database.php<\/b> \u0431\u044b\u043b \u0438\u0437\u043c\u0435\u043d\u0435\u043d, \u043d\u043e \u0435\u0449\u0435 \u043d\u0435 \u043f\u0440\u043e\u0438\u043d\u0434\u0435\u043a\u0441\u0438\u0440\u043e\u0432\u0430\u043d. \u0418\u043c\u0435\u043d\u043d\u043e \u044d\u0442\u0438 \u0438\u0437\u043c\u0435\u043d\u0435\u043d\u0438\u044f \u0438 \u043c\u0435\u0448\u0430\u044e\u0442 \u043d\u0430\u043c \u0437\u0430\u0431\u0440\u0430\u0442\u044c \u043a\u043e\u043c\u0430\u043d\u0434\u043e\u0439 <code>git pull<\/code> \u043d\u043e\u0432\u044b\u0435 \u0438\u0437\u043c\u0435\u043d\u0435\u043d\u0438\u044f. \u0423\u0447\u0438\u0442\u044b\u0432\u0430\u044f, \u0447\u0442\u043e \u043d\u0430 \u0448\u0430\u0433\u0435 1 \u043c\u044b \u0441\u043e\u0445\u0440\u0430\u043d\u0438\u043b\u0438 \u043d\u0430\u0448\u0438 \u043a\u043e\u043d\u0444\u0438\u0433\u0438 \u0432 \u043e\u0442\u0434\u0435\u043b\u044c\u043d\u0443\u044e \u043f\u0430\u043f\u043a\u0443 \u2014 \u043c\u044b \u043c\u043e\u0436\u0435\u043c \u0441\u0435\u0439\u0447\u0430\u0441 \u043e\u0442\u043c\u0435\u043d\u0438\u0442\u044c \u044d\u0442\u0438 \u0438\u0437\u043c\u0435\u043d\u0435\u043d\u0438\u044f.<br \/>  <code>git checkout application\/config\/database.php<\/code><\/p>\n<p>  4. \u0421\u0435\u0439\u0447\u0430\u0441 <code>git status<\/code> \u043f\u043e\u043a\u0430\u0436\u0435\u0442, \u0447\u0442\u043e \u0438\u0437\u043c\u0435\u043d\u0435\u043d\u0438\u0439 \u043d\u0435\u0442 (<code>nothing to commit, working tree clean<\/code>). \u0417\u0430\u0431\u0438\u0440\u0430\u0435\u043c \u043d\u043e\u0432\u044b\u0435 \u0438\u0437\u043c\u0435\u043d\u0435\u043d\u0438\u044f:<br \/>  <code>git pull<\/code><\/p>\n<p>  5. <i><u>\u041e\u043f\u0446\u0438\u043e\u043d\u0430\u043b\u044c\u043d\u043e:<\/u><\/i> \u0415\u0441\u043b\u0438 \u043c\u044b \u043f\u0440\u0438\u0432\u044b\u043a\u043b\u0438 \u0440\u0430\u0431\u043e\u0442\u0430\u0442\u044c \u0432 \u043e\u0442\u0434\u0435\u043b\u044c\u043d\u043e\u0439 \u0432\u0435\u0442\u043a\u0435 (\u043d\u0435 \u0432 <b>master<\/b>), \u0442\u043e \u043f\u0435\u0440\u0435\u0445\u043e\u0434\u0438\u043c \u0432 \u044d\u0442\u0443 \u0432\u0435\u0442\u043a\u0443 (\u043d\u0430\u043f\u0440\u0438\u043c\u0435\u0440: <b>dev-branch<\/b>) \u0434\u043b\u044f \u043f\u043e\u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0435\u0439 \u0440\u0430\u0431\u043e\u0442\u044b:<br \/>  <code>git checkout dev-branch<\/code><\/p>\n<p>  \u0438 \u0432\u043b\u0438\u0432\u0430\u0435\u043c \u0432 \u0432\u0435\u0442\u043a\u0443 dev-branch \u043d\u043e\u0432\u044b\u0435 \u0438\u0437\u043c\u0435\u043d\u0435\u043d\u0438\u044f \u0438\u0437 \u0432\u0435\u0442\u043a\u0438 master (\u043a\u0443\u0434\u0430 \u043c\u044b \u0438\u0445 \u0443\u0436\u0435 \u043f\u043e\u043b\u0443\u0447\u0438\u043b\u0438 \u043a\u043e\u043c\u0430\u043d\u0434\u043e\u0439 <code>git pull<\/code>):<br \/>  <code>git merge master<\/code><\/p>\n<p>  6. \u0418\u0437\u043c\u0435\u043d\u044f\u0435\u043c \u0442\u0435\u043f\u0435\u0440\u044c \u043d\u0430\u0448\u0438 \u043e\u0431\u043d\u043e\u0432\u043b\u0435\u043d\u043d\u044b\u0435 \u043a\u043e\u043d\u0444\u0438\u0433\u0438, \u0432\u043e\u0437\u0432\u0440\u0430\u0449\u0430\u044f \u0442\u0443\u0434\u0430 \u043d\u0430\u0448\u0438 \u043b\u043e\u043a\u0430\u043b\u044c\u043d\u044b\u0435 \u043f\u0430\u0440\u043e\u043b\u0438 \u0438 \u0432\u0441\u0435 \u0442\u043e, \u0447\u0442\u043e \u043c\u044b \u0436\u0435\u043b\u0430\u0435\u043c \u0442\u0430\u043c \u0432\u0438\u0434\u0435\u0442\u044c, \u043d\u043e \u043d\u0435 \u0445\u043e\u0442\u0438\u043c \u044d\u0442\u043e \u0445\u0440\u0430\u043d\u0438\u0442\u044c \u0432 \u0440\u0435\u043f\u043e\u0437\u0438\u0442\u043e\u0440\u0438\u0438 (\u0434\u043b\u044f \u044d\u0442\u043e\u0433\u043e \u043c\u044b \u0441\u043e\u0445\u0440\u0430\u043d\u0438\u043b\u0438 \u0432\u0441\u0435 \u0432 \u0448\u0430\u0433\u0435 1). \u041f\u043e\u0441\u043b\u0435 \u0447\u0435\u0433\u043e \u043a\u043e\u043c\u0430\u043d\u0434\u0430 <code>git status<\/code> \u0435\u0441\u0442\u0435\u0441\u0442\u0432\u0435\u043d\u043d\u043e \u043f\u043e\u043a\u0430\u0436\u0435\u0442, \u0447\u0442\u043e \u043a\u043e\u043d\u0444\u0438\u0433\u0438 \u0438\u0437\u043c\u0435\u043d\u0435\u043d\u044b, \u043d\u043e \u043d\u0435 \u043f\u0440\u043e\u0438\u043d\u0434\u0435\u043a\u0441\u0438\u0440\u043e\u0432\u0430\u043d\u044b.<\/p>\n<p>  7. \u0418 \u0442\u043e\u043b\u044c\u043a\u043e \u0442\u0435\u043f\u0435\u0440\u044c \u043c\u044b \u043c\u043e\u0436\u0435\u043c \u0441\u043d\u043e\u0432\u0430 \u0432\u043a\u043b\u044e\u0447\u0438\u0442\u044c \u0438\u0433\u043d\u043e\u0440\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u0435 (<code>--assume-unchanged<\/code>):<br \/>  <code>git update-index --assume-unchanged application\/config\/database.php<\/code><\/p>\n<p>  \u041f\u043e\u0441\u043b\u0435 \u0447\u0435\u0433\u043e <code>git status<\/code> \u043f\u043e\u043a\u0430\u0436\u0435\u0442, \u0447\u0442\u043e \u0432\u0441\u0435 \u0447\u0438\u0441\u0442\u043e (<code>nothing to commit, working tree clean<\/code>) \u0438 \u043c\u044b \u0441\u043c\u043e\u0436\u0435\u043c \u0441\u043d\u043e\u0432\u0430 \u0440\u0430\u0431\u043e\u0442\u0430\u0442\u044c, \u0434\u0435\u043b\u0430\u0442\u044c \u043a\u043e\u043c\u043c\u0438\u0442\u044b \u0438 \u043f\u0435\u0440\u0435\u043a\u043b\u044e\u0447\u0430\u0442\u044c\u0441\u044f \u043c\u0435\u0436\u0434\u0443 \u0432\u0435\u0442\u043a\u0430\u043c\u0438.<\/p>\n<p>  <b>P.S.<\/b> <i>\u0420\u0430\u0437\u0443\u043c\u0435\u0435\u0442\u0441\u044f \u0430\u0432\u0442\u043e\u0440 \u043d\u0435 \u0440\u0435\u043a\u043e\u043c\u0435\u043d\u0434\u0443\u0435\u0442 \u0445\u0440\u0430\u043d\u0438\u0442\u044c \u043a\u043e\u043d\u0444\u0438\u0433\u0438 \u0441 \u043f\u0430\u0440\u043e\u043b\u044f\u043c\u0438 \u0432 \u0440\u0435\u043f\u043e\u0437\u0438\u0442\u043e\u0440\u0438\u0438. \u042d\u0442\u043e \u043b\u0438\u0448\u044c \u043d\u0430\u0433\u043b\u044f\u0434\u043d\u044b\u0439 \u043f\u0440\u0438\u043c\u0435\u0440.<\/i><\/p>\n<p>  <i><b>\u041c\u043e\u0434\u0435\u0440\u0430\u0442\u043e\u0440\u0443:<\/b> \u0414\u0430\u043d\u043d\u044b\u0439 2do list \u043f\u0438\u0441\u0430\u043b \u0440\u0430\u043d\u0435\u0435 \u0434\u043b\u044f \u0441\u0435\u0431\u044f \u0432 \u0436\u0436 (https:\/\/pashakiz.livejournal.com\/183468.html)<br \/>  \u0415\u0441\u043b\u0438 \u0434\u043b\u044f \u0445\u0430\u0431\u0440\u0430 \u044d\u0442\u043e \u0432\u0430\u0436\u043d\u043e \u2014 \u043c\u043e\u0433\u0443 \u0441\u043a\u0440\u044b\u0442\u044c \u0441\u0432\u043e\u044e \u043f\u043e\u0441\u0442 \u0432 \u0436\u0436 \u043f\u043e\u0434 \u043a\u043b\u044e\u0447.<\/i><\/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\/post\/709246\/\"> https:\/\/habr.com\/ru\/post\/709246\/<\/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\">\u0415\u0441\u043b\u0438 \u0432\u043d\u0435\u0441\u0442\u0438 \u0444\u0430\u0439\u043b \u0432 <b>.gitignore<\/b>, \u0442\u043e \u043e\u043d \u043d\u0435 \u0431\u0443\u0434\u0435\u0442 \u043e\u0442\u0441\u043b\u0435\u0436\u0438\u0432\u0430\u0442\u044c\u0441\u044f \u0433\u0438\u0442\u043e\u043c \u043b\u0438\u0448\u044c \u0432 \u0442\u043e\u043c \u0441\u043b\u0443\u0447\u0430\u0435, \u0435\u0441\u043b\u0438 \u044d\u0442\u043e\u0433\u043e \u0444\u0430\u0439\u043b\u0430 \u043d\u0435\u0442 \u0432 \u0443\u0434\u0430\u043b\u0435\u043d\u043d\u043e\u043c \u0440\u0435\u043f\u043e\u0437\u0438\u0442\u043e\u0440\u0438\u0438.<\/p>\n<p>  \u041d\u043e \u0435\u0441\u043b\u0438 \u0432 \u0440\u0435\u043f\u043e\u0437\u0438\u0442\u043e\u0440\u0438\u0438 \u0443\u0436\u0435 \u0435\u0441\u0442\u044c (\u043a \u043f\u0440\u0438\u043c\u0435\u0440\u0443 \u043a\u043e\u043d\u0444\u0438\u0433\u0438 \u0441\u0430\u0439\u0442\u0430), \u0430 \u043c\u044b \u043d\u0435 \u0445\u043e\u0442\u0438\u043c, \u0447\u0442\u043e\u0431\u044b \u043d\u0430\u0448\u0438 \u043b\u043e\u043a\u0430\u043b\u044c\u043d\u044b\u0435 \u043a\u043e\u043d\u0444\u0438\u0433\u0438 \u043e\u0442\u0441\u043b\u0435\u0436\u0438\u0432\u0430\u043b\u0438\u0441\u044c, \u0442\u043e \u043c\u043e\u0436\u043d\u043e \u0432\u044b\u043f\u043e\u043b\u043d\u0438\u0442\u044c \u043a\u043e\u043c\u0430\u043d\u0434\u0443:<br \/>  <code>git update-index --assume-unchanged application\/config\/database.php<\/code><\/p>\n<p>  \u043b\u0438\u0431\u043e \u0432\u0441\u044e \u043f\u0430\u043f\u043a\u0443<br \/>  <code>git update-index --assume-unchanged application\/config\/*<\/code><\/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-343561","post","type-post","status-publish","format-standard","hentry"],"_links":{"self":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/343561","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=343561"}],"version-history":[{"count":0,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/343561\/revisions"}],"wp:attachment":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=343561"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=343561"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=343561"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}