{"id":353139,"date":"2021-09-05T09:41:38","date_gmt":"2021-09-05T06:41:38","guid":{"rendered":"https:\/\/dvigok.com.ua\/?p=353139"},"modified":"2021-09-04T13:44:30","modified_gmt":"2021-09-04T10:44:30","slug":"gitignore-dlya-wordpress","status":"publish","type":"post","link":"https:\/\/dvigok.com.ua\/ru\/gitignore-dlya-wordpress\/","title":{"rendered":".gitignore \u0434\u043b\u044f WordPress"},"content":{"rendered":"<p>\u041f\u0440\u0438 \u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u043a\u0435 \u0432\u0435\u0431-\u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0439 \u0440\u0430\u0431\u043e\u0442\u0443 \u0431\u0435\u0437 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u044f Git \u0443\u0436\u0435 \u043d\u0435 \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e \u043f\u0440\u0435\u0434\u0441\u0442\u0430\u0432\u0438\u0442\u044c. \u0421\u043b\u043e\u0436\u043d\u043e \u0432\u044b\u0434\u0443\u043c\u0430\u0442\u044c \u0447\u0442\u043e \u0442\u043e \u0431\u043e\u043b\u0435\u0435 \u0440\u0430\u0446\u0438\u043e\u043d\u0430\u043b\u044c\u043d\u043e\u0435 \u0434\u043b\u044f \u043a\u043e\u043d\u0442\u0440\u043e\u043b\u044f \u0432\u0435\u0440\u0441\u0438\u0439. \u0410 \u0438\u0441\u0442\u043e\u0440\u0438\u044f \u043a\u043e\u043c\u043c\u0438\u0442\u043e\u0432 \u043f\u043e\u0437\u0432\u043e\u043b\u044f\u0435\u0442 \u043f\u0440\u043e\u0441\u043b\u0435\u0434\u0438\u0442\u044c \u0432\u0435\u0441\u044c \u043f\u0440\u043e\u0446\u0435\u0441\u0441 \u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u043a\u0438 \u043a\u043e\u043d\u043a\u0440\u0435\u0442\u043d\u043e\u0433\u043e \u043f\u0440\u043e\u0435\u043a\u0442\u0430 \u0432\u043e \u0432\u0440\u0435\u043c\u0435\u043d\u0438.<!--more--><\/p>\n<p>\u041f\u0440\u0438 \u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u043a\u0435 \u0448\u0430\u0431\u043b\u043e\u043d\u043e\u0432 \u0434\u043b\u044f WordPress \u0442\u0430\u043a\u0436\u0435 \u0447\u0430\u0441\u0442\u043e \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u0442\u0441\u044f git, \u0442.\u043a. \u043f\u0440\u043e\u0446\u0435\u0441\u0441 \u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u043a\u0438 \u0434\u043e\u0441\u0442\u0430\u0442\u043e\u0447\u043d\u043e \u0434\u043b\u0438\u0442\u0435\u043b\u044c\u043d\u044b\u0439.<\/p>\n<p>\u041f\u0440\u0435\u0434\u043f\u043e\u043b\u043e\u0436\u0438\u043c \u0447\u0442\u043e \u043c\u044b \u0438\u043d\u0438\u0446\u0438\u0430\u043b\u0438\u0437\u0438\u0440\u043e\u0432\u0430\u043b\u0438 \u0440\u0435\u043f\u043e\u0437\u0438\u0442\u043e\u0440\u0438\u0439 \u0432 \u043a\u043e\u0440\u043d\u0435 \u043d\u0430\u0448\u0435\u0433\u043e \u043f\u0440\u043e\u0435\u043a\u0442\u0430 \u0447\u0435\u0440\u0435\u0437\u00a0<code>git init<\/code>.<\/p>\n<p>\u041d\u043e \u043a\u0430\u043a \u043e\u0433\u0440\u0430\u0434\u0438\u0442\u044c \u0432\u0430\u0448\u0443 \u043f\u0430\u043f\u043a\u0443 \u0441 \u0442\u0435\u043c\u043e\u0439 (\u0432\u0435\u0434\u044c \u043d\u0430\u043c \u043d\u0443\u0436\u043d\u043e \u0437\u0430\u043a\u043e\u043c\u043c\u0438\u0442\u0438\u0442\u044c \u0438\u043c\u0435\u043d\u043d\u043e \u0435\u0435) \u043e\u0442 \u043e\u0441\u0442\u0430\u043b\u044c\u043d\u044b\u0445 \u0444\u0430\u0439\u043b\u043e\u0432 WordPress: \u044f\u0434\u0440\u0430 \u0438 \u043f\u0440\u043e\u0447\u0438\u0445 \u0444\u0430\u0439\u043b\u043e\u0432 \u0438\u0434\u0443\u0449\u0438\u0445 \u0441 \u0434\u0438\u0441\u0442\u0440\u0438\u0431\u0443\u0442\u0438\u0432\u043e\u043c, \u0430 \u0442\u0430\u043a\u0436\u0435 \u043f\u0440\u043e\u0447\u0438\u0445 \u043f\u043b\u0430\u0433\u0438\u043d\u043e\u0432? \u0415\u0441\u0442\u0435\u0441\u0442\u0432\u0435\u043d\u043d\u043e \u043f\u0440\u0438 \u043f\u043e\u043c\u043e\u0449\u0438\u00a0<code>.gitignore<\/code><\/p>\n<p>\u041d\u0438\u0436\u0435 \u043f\u0440\u0438\u043c\u0435\u0440 .gitignore \u0434\u043b\u044f \u0441\u0442\u0430\u043d\u0434\u0430\u0440\u0442\u043d\u043e\u0439 \u0438\u043d\u0441\u0442\u0430\u043b\u043b\u044f\u0446\u0438\u0438 WordPress<\/p>\n<p><code><br \/>\n# -----------------------------------------------------------------<br \/>\n# .gitignore for WordPress @salcode<br \/>\n# ver 20160309<br \/>\n#<br \/>\n# From the root of your project run<br \/>\n# curl -O https:\/\/gist.githubusercontent.com\/salcode\/b515f520d3f8207ecd04\/raw\/.gitignore<br \/>\n# to download this file<br \/>\n#<br \/>\n# By default all files are ignored.  You'll need to whitelist<br \/>\n# any mu-plugins, plugins, or themes you want to include in the repo.<br \/>\n#<br \/>\n# To ignore uncommitted changes in a file that is already tracked, use<br \/>\n# git update-index --assume-unchanged<br \/>\n#<br \/>\n# To stop tracking a file that is currently tracked, use<br \/>\n# git rm --cached<br \/>\n#<br \/>\n# Change Log:<br \/>\n# 20160309 Added favicon files as whitelisted files<br \/>\n# 20150302 Added composer.json as a whitelisted file<br \/>\n# 20150227 Created as fork of https:\/\/gist.github.com\/salcode\/9940509,<br \/>\n#   this version ignores all files by default<br \/>\n# -----------------------------------------------------------------<br \/>\n# ignore everything in the root except the \"wp-content\" directory.<br \/>\n\/*<br \/>\n!wp-content\/<br \/>\n# ignore everything in the \"wp-content\" directory, except:<br \/>\n# mu-plugins, plugins, and themes directories<br \/>\nwp-content\/*<br \/>\n!wp-content\/mu-plugins\/<br \/>\n!wp-content\/plugins\/<br \/>\n!wp-content\/themes\/<br \/>\n# ignore all mu-plugins, plugins, and themes<br \/>\n# unless explicitly whitelisted at the end of this file<br \/>\nwp-content\/mu-plugins\/*<br \/>\nwp-content\/plugins\/*<br \/>\nwp-content\/themes\/*<br \/>\n# ignore all files starting with . or ~<br \/>\n.*<br \/>\n~*<br \/>\n# ignore node dependency directories (used by grunt)<br \/>\nnode_modules\/<br \/>\n# ignore OS generated files<br \/>\nehthumbs.db<br \/>\nThumbs.db<br \/>\n# ignore Editor files<br \/>\n*.sublime-project<br \/>\n*.sublime-workspace<br \/>\n*.komodoproject<br \/>\n# ignore log files and databases<br \/>\n*.log<br \/>\n*.sql<br \/>\n*.sqlite<br \/>\n# ignore compiled files<br \/>\n*.com<br \/>\n*.class<br \/>\n*.dll<br \/>\n*.exe<br \/>\n*.o<br \/>\n*.so<br \/>\n# ignore packaged files<br \/>\n*.7z<br \/>\n*.dmg<br \/>\n*.gz<br \/>\n*.iso<br \/>\n*.jar<br \/>\n*.rar<br \/>\n*.tar<br \/>\n*.zip<br \/>\n# -------------------------<br \/>\n# BEGIN Whitelisted Files<br \/>\n# -------------------------<br \/>\n# track these files, if they exist<br \/>\n!.gitignore<br \/>\n!.editorconfig<br \/>\n!README.md<br \/>\n!CHANGELOG.md<br \/>\n!composer.json<br \/>\n# track favicon files, if they exist<br \/>\n!android-chrome-*.png<br \/>\n!apple-touch-icon*.png<br \/>\n!browserconfig.xml<br \/>\n!favicon*.png<br \/>\n!favicon*.ico<br \/>\n!manifest.json<br \/>\n!mstile-*.png<br \/>\n!safari-pinned-tab.svg<br \/>\n# track these mu-plugins, plugins, and themes<br \/>\n# add your own entries here<br \/>\n!wp-content\/mu-plugins\/example-mu-plugin\/<br \/>\n!wp-content\/plugins\/example-plugin\/<br \/>\n!wp-content\/themes\/example-theme\/<br \/>\n<\/code><\/p>\n<p><a href=\"https:\/\/newwebmaster.ru\/gitignore-for-wordpress\/\" rel=\"nofollow\" target=\"_blank\">\u0418\u0441\u0442\u043e\u0447\u043d\u0438\u043a<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u041f\u0440\u0438 \u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u043a\u0435 \u0432\u0435\u0431-\u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0439 \u0440\u0430\u0431\u043e\u0442\u0443 \u0431\u0435\u0437 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u044f Git \u0443\u0436\u0435 \u043d\u0435 \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e \u043f\u0440\u0435\u0434\u0441\u0442\u0430\u0432\u0438\u0442\u044c. \u0421\u043b\u043e\u0436\u043d\u043e \u0432\u044b\u0434\u0443\u043c\u0430\u0442\u044c \u0447\u0442\u043e \u0442\u043e \u0431\u043e\u043b\u0435\u0435 \u0440\u0430\u0446\u0438\u043e\u043d\u0430\u043b\u044c\u043d\u043e\u0435 \u0434\u043b\u044f \u043a\u043e\u043d\u0442\u0440\u043e\u043b\u044f \u0432\u0435\u0440\u0441\u0438\u0439. \u0410 \u0438\u0441\u0442\u043e\u0440\u0438\u044f \u043a\u043e\u043c\u043c\u0438\u0442\u043e\u0432 \u043f\u043e\u0437\u0432\u043e\u043b\u044f\u0435\u0442 \u043f\u0440\u043e\u0441\u043b\u0435\u0434\u0438\u0442\u044c \u0432\u0435\u0441\u044c \u043f\u0440\u043e\u0446\u0435\u0441\u0441 \u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u043a\u0438 \u043a\u043e\u043d\u043a\u0440\u0435\u0442\u043d\u043e\u0433\u043e \u043f\u0440\u043e\u0435\u043a\u0442\u0430 \u0432\u043e \u0432\u0440\u0435\u043c\u0435\u043d\u0438.<\/p>\n","protected":false},"author":1,"featured_media":353140,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[31],"tags":[452,420],"_links":{"self":[{"href":"https:\/\/dvigok.com.ua\/ru\/wp-json\/wp\/v2\/posts\/353139"}],"collection":[{"href":"https:\/\/dvigok.com.ua\/ru\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/dvigok.com.ua\/ru\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/dvigok.com.ua\/ru\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/dvigok.com.ua\/ru\/wp-json\/wp\/v2\/comments?post=353139"}],"version-history":[{"count":1,"href":"https:\/\/dvigok.com.ua\/ru\/wp-json\/wp\/v2\/posts\/353139\/revisions"}],"predecessor-version":[{"id":353143,"href":"https:\/\/dvigok.com.ua\/ru\/wp-json\/wp\/v2\/posts\/353139\/revisions\/353143"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/dvigok.com.ua\/ru\/wp-json\/wp\/v2\/media\/353140"}],"wp:attachment":[{"href":"https:\/\/dvigok.com.ua\/ru\/wp-json\/wp\/v2\/media?parent=353139"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/dvigok.com.ua\/ru\/wp-json\/wp\/v2\/categories?post=353139"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/dvigok.com.ua\/ru\/wp-json\/wp\/v2\/tags?post=353139"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}