{"id":390503,"date":"2024-06-29T09:16:59","date_gmt":"2024-06-29T09:16:59","guid":{"rendered":"http:\/\/savepearlharbor.com\/?p=390503"},"modified":"-0001-11-30T00:00:00","modified_gmt":"-0001-11-29T21:00:00","slug":"","status":"publish","type":"post","link":"https:\/\/savepearlharbor.com\/?p=390503","title":{"rendered":"<span>\u041a\u0430\u043a \u043a\u043e\u043c\u043c\u0438\u0442\u0438\u0442\u044c \u0432 open source. \u041f\u043e\u0448\u0430\u0433\u043e\u0432\u044b\u0439 \u0433\u0430\u0439\u0434<\/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-2\">\n<div xmlns=\"http:\/\/www.w3.org\/1999\/xhtml\">\n<p>\u0418\u043d\u0441\u0442\u0440\u0443\u043a\u0446\u0438\u044f \u043d\u0430\u043f\u0438\u0441\u0430\u043d\u0430 \u0434\u043b\u044f \u0441\u0435\u0440\u0432\u0438\u0441\u0430\u00a0<a href=\"https:\/\/github.com\/\" rel=\"noopener noreferrer nofollow\"><u>github<\/u><\/a>. \u0412\u0430\u043c \u043d\u0443\u0436\u043d\u043e \u0432\u043e\u0439\u0442\u0438 \u0432 \u0441\u0432\u043e\u0439 \u0430\u043a\u043a\u0430\u0443\u043d\u0442 \u0438\u043b\u0438 \u0437\u0430\u0440\u0435\u0433\u0438\u0441\u0442\u0440\u0438\u0440\u043e\u0432\u0430\u0442\u044c\u0441\u044f.<\/p>\n<p>\u0412\u0441\u0435 \u043a\u043e\u043c\u0430\u043d\u0434\u044b \u0432\u0432\u043e\u0434\u044f\u0442\u0441\u044f \u0432\u00a0<strong>\u0442\u0435\u0440\u043c\u0438\u043d\u0430\u043b\u0435<\/strong>.<\/p>\n<p><strong>\u0428\u0430\u0433 1<\/strong><\/p>\n<p>\u0414\u0435\u043b\u0430\u0435\u043c\u00a0<code>fork<\/code>\u00a0(\u043a\u043e\u043f\u0438\u044e) \u043d\u0443\u0436\u043d\u043e\u0433\u043e \u043f\u0440\u043e\u0435\u043a\u0442\u0430. \u041f\u0435\u0440\u0435\u0445\u043e\u0434\u0438\u043c \u0432 \u0441\u0432\u043e\u0439 \u0430\u043a\u043a\u0430\u0443\u043d\u0442 \u0438 \u0437\u0430\u0445\u043e\u0434\u0438\u043c \u0432 \u0442\u043e\u043b\u044c\u043a\u043e \u0447\u0442\u043e \u0441\u043e\u0437\u0434\u0430\u043d\u043d\u044b\u0439\u00a0<code>fork<\/code>.<\/p>\n<figure class=\"full-width\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w1560\/getpro\/habr\/upload_files\/021\/640\/e89\/021640e89c0674215490865a5df97e4b.png\" alt=\"\u0414\u0435\u043b\u0430\u0435\u043c fork \u043d\u0443\u0436\u043d\u043e\u0433\u043e \u043f\u0440\u043e\u0435\u043a\u0442\u0430\" title=\"\u0414\u0435\u043b\u0430\u0435\u043c fork \u043d\u0443\u0436\u043d\u043e\u0433\u043e \u043f\u0440\u043e\u0435\u043a\u0442\u0430\" width=\"3456\" height=\"2158\" data-src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/021\/640\/e89\/021640e89c0674215490865a5df97e4b.png\"\/><\/p>\n<div><figcaption>\u0414\u0435\u043b\u0430\u0435\u043c fork \u043d\u0443\u0436\u043d\u043e\u0433\u043e \u043f\u0440\u043e\u0435\u043a\u0442\u0430<\/figcaption><\/div>\n<\/figure>\n<figure class=\"full-width\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w1560\/getpro\/habr\/upload_files\/128\/ce9\/b16\/128ce9b163d1fa0b3af68d8777b790ac.png\" alt=\"\u041d\u0430\u0448 \u0441\u0434\u0435\u043b\u0430\u043d\u043d\u044b\u0439 fork \u0432 \u043d\u0430\u0448\u0435\u043c github \u0430\u043a\u043a\u0430\u0443\u043d\u0442\u0435\" title=\"\u041d\u0430\u0448 \u0441\u0434\u0435\u043b\u0430\u043d\u043d\u044b\u0439 fork \u0432 \u043d\u0430\u0448\u0435\u043c github \u0430\u043a\u043a\u0430\u0443\u043d\u0442\u0435\" width=\"3418\" height=\"1986\" data-src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/128\/ce9\/b16\/128ce9b163d1fa0b3af68d8777b790ac.png\"\/><\/p>\n<div><figcaption>\u041d\u0430\u0448 \u0441\u0434\u0435\u043b\u0430\u043d\u043d\u044b\u0439 fork \u0432 \u043d\u0430\u0448\u0435\u043c github \u0430\u043a\u043a\u0430\u0443\u043d\u0442\u0435<\/figcaption><\/div>\n<\/figure>\n<p><strong>\u0428\u0430\u0433 2<\/strong><\/p>\n<p>\u041a\u043b\u043e\u043d\u0438\u0440\u0443\u0435\u043c\u00a0<code>fork<\/code>\u00a0(\u043a\u043e\u043f\u0438\u044e) \u043f\u0440\u043e\u0435\u043a\u0442\u0430 \u0438\u0437 \u043f\u0440\u0435\u0434\u044b\u0434\u0443\u0449\u0435\u0433\u043e \u0448\u0430\u0433\u0430 \u043d\u0430 \u0441\u0432\u043e\u0439 \u043a\u043e\u043c\u043f\u044c\u044e\u0442\u0435\u0440. \u041d\u0430\u043f\u0440\u0438\u043c\u0435\u0440, \u0447\u0435\u0440\u0435\u0437 <code>SSH<\/code><\/p>\n<figure class=\"full-width\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w1560\/getpro\/habr\/upload_files\/679\/d0c\/d81\/679d0cd816f20ac993b80258cb48a729.png\" alt=\"\u041a\u043e\u043f\u0438\u0440\u0443\u0435\u043c \u0430\u0434\u0440\u0435\u0441 fork \u0440\u0435\u043f\u043e\u0437\u0438\u0442\u043e\u0440\u0438\u044f \u0447\u0435\u0440\u0435\u0437 ssh\" title=\"\u041a\u043e\u043f\u0438\u0440\u0443\u0435\u043c \u0430\u0434\u0440\u0435\u0441 fork \u0440\u0435\u043f\u043e\u0437\u0438\u0442\u043e\u0440\u0438\u044f \u0447\u0435\u0440\u0435\u0437 ssh\" width=\"3424\" height=\"1974\" data-src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/679\/d0c\/d81\/679d0cd816f20ac993b80258cb48a729.png\"\/><\/p>\n<div><figcaption>\u041a\u043e\u043f\u0438\u0440\u0443\u0435\u043c \u0430\u0434\u0440\u0435\u0441 fork \u0440\u0435\u043f\u043e\u0437\u0438\u0442\u043e\u0440\u0438\u044f \u0447\u0435\u0440\u0435\u0437 ssh<\/figcaption><\/div>\n<\/figure>\n<p><code>git clone git@github.com:maxdzyubak\/vite.git<\/code><\/p>\n<p><strong>\u0428\u0430\u0433 3<\/strong><\/p>\n<p>\u041d\u0430\u0441\u0442\u0440\u0430\u0438\u0432\u0430\u0435\u043c \u043a\u043e\u043d\u0444\u0438\u0433\u00a0<code>git<\/code>\u00a0\u043b\u043e\u043a\u0430\u043b\u044c\u043d\u043e (<code>local<\/code>). \u041d\u0443\u0436\u043d\u043e \u043f\u043e\u0432\u0442\u043e\u0440\u044f\u0442\u044c \u0434\u043b\u044f \u043a\u0430\u0436\u0434\u043e\u0433\u043e \u043f\u0440\u043e\u0435\u043a\u0442\u0430<\/p>\n<p><code>git config --local user.name maxdzyubak<\/code><\/p>\n<p><code>git config --local user.email maxdzyubak@gmail.com<\/code><\/p>\n<p>\u0418\u043b\u0438 \u0433\u043b\u043e\u0431\u0430\u043b\u044c\u043d\u043e (<code>global<\/code>). \u041d\u0430\u0441\u0442\u0440\u043e\u0438\u0442\u044c \u043e\u0434\u0438\u043d \u0440\u0430\u0437 \u0434\u043b\u044f \u0432\u0441\u0435\u0445 \u043f\u0440\u043e\u0435\u043a\u0442\u043e\u0432<\/p>\n<p><code>git config --global user.name maxdzyubak<\/code><\/p>\n<p><code>git config --global user.email maxdzyubak@gmail.com<\/code><\/p>\n<p><strong>\u0428\u0430\u0433 4<\/strong><\/p>\n<p>\u0414\u0435\u043b\u0430\u0435\u043c \u0443\u043a\u0430\u0437\u0430\u0442\u0435\u043b\u044c \u043d\u0430 \u043e\u0440\u0438\u0433\u0438\u043d\u0430\u043b\u044c\u043d\u044b\u0439 \u0440\u0435\u043f\u043e\u0437\u0438\u0442\u043e\u0440\u0438\u0439\u00a0<code>upstream<\/code>\u00a0\u043e\u0442\u043a\u0443\u0434\u0430 \u043c\u044b \u0434\u0435\u043b\u0430\u043b\u0438\u00a0<code>fork<\/code>\u00a0(\u043a\u043e\u043f\u0438\u044e). \u041e\u043d \u043d\u0443\u0436\u0435\u043d \u0434\u043b\u044f \u0442\u043e\u0433\u043e, \u0447\u0442\u043e\u0431\u044b \u0441\u043a\u0430\u0447\u0438\u0432\u0430\u0442\u044c \u043f\u043e\u0441\u043b\u0435\u0434\u043d\u0438\u0435 \u043e\u0431\u043d\u043e\u0432\u043b\u0435\u043d\u0438\u044f \u043a\u043e\u0434\u0430 \u0438\u0437 \u043e\u0440\u0438\u0433\u0438\u043d\u0430\u043b\u044c\u043d\u043e\u0433\u043e \u0440\u0435\u043f\u043e\u0437\u0438\u0442\u043e\u0440\u0438\u044f. (\u041f\u0440\u043e\u0432\u0435\u0440\u043a\u0430 upstream:\u00a0<code>git remote -v<\/code>)<\/p>\n<p><code>git remote add upstream https:\/\/github.com\/vitejs\/vite.git<\/code><\/p>\n<p><strong>\u0428\u0430\u0433 5<\/strong><\/p>\n<p>\u0421\u043e\u0437\u0434\u0430\u0451\u043c \u043d\u043e\u0432\u0443\u044e \u0432\u0435\u0442\u043a\u0443 \u0438 \u0441\u0440\u0430\u0437\u0443 \u043f\u0435\u0440\u0435\u0445\u043e\u0434\u0438\u043c \u0432 \u043d\u0435\u0451. \u0412\u0441\u0435 \u0438\u0437\u043c\u0435\u043d\u0435\u043d\u0438\u044f \u043f\u0440\u043e\u0438\u0437\u0432\u043e\u0434\u0438\u043c \u0432 \u043d\u0435\u0439. \u042d\u0442\u043e \u0441\u0447\u0438\u0442\u0430\u0435\u0442\u0441\u044f \u0445\u043e\u0440\u043e\u0448\u0435\u0439 \u043f\u0440\u0430\u043a\u0442\u0438\u043a\u043e\u0439<\/p>\n<p><code>git checkout -b new_branch<\/code><\/p>\n<p><strong>\u0428\u0430\u0433 6<\/strong><\/p>\n<p>\u041f\u0440\u043e\u0432\u0435\u0440\u0438\u0442\u044c \u0441\u0442\u0430\u0442\u0443\u0441 \u0441\u0434\u0435\u043b\u0430\u043d\u043d\u044b\u0445 \u0438\u0437\u043c\u0435\u043d\u0435\u043d\u0438\u0439 \u043c\u043e\u0436\u043d\u043e \u043a\u043e\u043c\u0430\u043d\u0434\u043e\u0439<\/p>\n<p><code>git status<\/code><\/p>\n<p><strong>\u0428\u0430\u0433 7<\/strong><\/p>\n<p>\u0414\u043e\u0431\u0430\u0432\u043b\u044f\u0435\u043c \u0438\u0437\u043c\u0435\u043d\u0435\u043d\u0438\u044f \u0432 \u043e\u0442\u0441\u043b\u0435\u0436\u0438\u0432\u0430\u0435\u043c\u044b\u0435 (<code>staged<\/code>). Git \u043d\u0430\u0447\u0438\u043d\u0430\u0435\u0442 \u0441\u043b\u0435\u0434\u0438\u0442\u044c \u0437\u0430 \u0438\u0437\u043c\u0435\u043d\u0435\u043d\u0438\u044f\u043c\u0438 \u0432 \u044d\u0442\u043e\u043c \u0444\u0430\u0439\u043b\u0435\/\u0444\u0430\u0439\u043b\u0430\u0445<\/p>\n<p><code>git add README.md<\/code><\/p>\n<p><strong>\u0428\u0430\u0433 8<\/strong><\/p>\n<p>\u0414\u0435\u043b\u0430\u0435\u043c \u043a\u043e\u043c\u043c\u0438\u0442 (<code>commit<\/code>) \u0441 \u0438\u0437\u043c\u0435\u043d\u0435\u043d\u0438\u044f\u043c\u0438. \u0415\u0441\u043b\u0438 \u0435\u0441\u0442\u044c \u043d\u043e\u043c\u0435\u0440\u00a0<code>issue<\/code>, \u0442\u043e \u043b\u0443\u0447\u0448\u0435 \u0432\u0441\u0435\u0433\u043e \u0432 \u043a\u043e\u043c\u043c\u0438\u0442\u0435 \u043d\u0430\u043f\u0438\u0441\u0430\u0442\u044c \u0442\u0430\u043a:\u00a0<code>[#123] fix bug<\/code>. \u0415\u0441\u043b\u0438 \u043f\u0440\u043e\u0441\u0442\u043e \u0443\u043a\u0430\u0437\u0430\u0442\u044c \u0440\u0435\u0448\u0451\u0442\u043a\u0443 \u0431\u0435\u0437 \u0441\u043a\u043e\u0431\u043e\u043a, \u0442\u043e \u043f\u0440\u0438\u00a0<code>git rebase<\/code>\u00a0\u043e\u043d \u0435\u0451 \u043f\u0440\u043e\u0438\u0433\u043d\u043e\u0440\u0438\u0440\u0443\u0435\u0442<\/p>\n<p><code>git commit -m 'Update README.md'<\/code><\/p>\n<p><strong>\u0428\u0430\u0433 9<\/strong><\/p>\n<p>\u041f\u0440\u043e\u0432\u0435\u0440\u0438\u0442\u044c \u0441\u0434\u0435\u043b\u0430\u043d\u043d\u044b\u0439 \u043a\u043e\u043c\u043c\u0438\u0442<\/p>\n<p><code>git log<\/code><\/p>\n<p><strong>\u0428\u0430\u0433 10<\/strong><\/p>\n<p>\u041f\u0443\u0448\u0438\u043c, \u0441\u0434\u0435\u043b\u0430\u043d\u043d\u044b\u0435 \u0438\u0437\u043c\u0435\u043d\u0435\u043d\u0438\u044f \u0432\u043e \u0432\u043d\u0435\u0448\u043d\u0438\u0439 \u043c\u0438\u0440, \u0442\u0430\u043a \u043a\u0430\u043a \u043f\u043e\u043a\u0430 \u043e\u043d\u0438 \u043d\u0430\u0445\u043e\u0434\u044f\u0442\u0441\u044f \u0442\u043e\u043b\u044c\u043a\u043e \u0443 \u043d\u0430\u0441 \u043b\u043e\u043a\u0430\u043b\u044c\u043d\u043e \u043d\u0430 \u043a\u043e\u043c\u043f\u044c\u044e\u0442\u0435\u0440\u0435, c \u0443\u043a\u0430\u0437\u0430\u043d\u0438\u0435\u043c \u0441\u043e\u0437\u0434\u0430\u043d\u043d\u043e\u0439 \u0432\u0435\u0442\u043a\u0438<\/p>\n<p><code>git push origin new_branch<\/code><\/p>\n<p><strong>\u0428\u0430\u0433 11<\/strong><\/p>\n<p>\u0421\u043e\u0437\u0434\u0430\u0451\u043c \u043f\u0443\u043b\u043b \u0440\u0435\u043a\u0432\u0435\u0441\u0442 (<code>pull request<\/code>) \u043d\u0430\u0436\u0430\u0442\u0438\u0435\u043c \u043d\u0430 \u043a\u043d\u043e\u043f\u043a\u0443 \u0441 \u043d\u0430\u0437\u0432\u0430\u043d\u0438\u0435\u043c\u00a0<code>Compare &amp; pull request<\/code>\u00a0\u043b\u0438\u0431\u043e \u0432 \u043e\u0440\u0438\u0433\u0438\u043d\u0430\u043b\u044c\u043d\u043e\u043c \u0440\u0435\u043f\u043e\u0437\u0438\u0442\u043e\u0440\u0438\u0438 \u0438\u0437 \u043a\u043e\u0442\u043e\u0440\u043e\u0433\u043e \u0434\u0435\u043b\u0430\u043b\u0438\u00a0<code>fork<\/code><\/p>\n<figure class=\"full-width\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w1560\/getpro\/habr\/upload_files\/57b\/598\/cff\/57b598cffd060f9237fbd26b86407488.png\" alt=\"Pull request \u0432 \u043e\u0440\u0438\u0433\u0438\u043d\u0430\u043b\u044c\u043d\u043e\u043c \u0440\u0435\u043f\u043e\u0437\u0438\u0442\u043e\u0440\u0438\u0438\" title=\"Pull request \u0432 \u043e\u0440\u0438\u0433\u0438\u043d\u0430\u043b\u044c\u043d\u043e\u043c \u0440\u0435\u043f\u043e\u0437\u0438\u0442\u043e\u0440\u0438\u0438\" width=\"3398\" height=\"1938\" data-src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/57b\/598\/cff\/57b598cffd060f9237fbd26b86407488.png\"\/><\/p>\n<div><figcaption>Pull request \u0432 \u043e\u0440\u0438\u0433\u0438\u043d\u0430\u043b\u044c\u043d\u043e\u043c \u0440\u0435\u043f\u043e\u0437\u0438\u0442\u043e\u0440\u0438\u0438<\/figcaption><\/div>\n<\/figure>\n<p>\u043b\u0438\u0431\u043e \u0432 \u043d\u0430\u0448\u0435\u043c <code>github<\/code>\u00a0\u0430\u043a\u043a\u0430\u0443\u043d\u0442\u0435, \u0432 \u0441\u0434\u0435\u043b\u0430\u043d\u043d\u043e\u043c <code>fork<\/code>\u00a0<\/p>\n<figure class=\"full-width\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w1560\/getpro\/habr\/upload_files\/98a\/5a1\/98d\/98a5a198d37234c3061c88d796b39c6d.png\" alt=\"Pull request \u0432 \u043d\u0430\u0448\u0435\u043c \u0430\u043a\u043a\u0430\u0443\u043d\u0442\u0435 github, \u0432 \u0441\u0434\u0435\u043b\u0430\u043d\u043d\u043e\u043c fork\" title=\"Pull request \u0432 \u043d\u0430\u0448\u0435\u043c \u0430\u043a\u043a\u0430\u0443\u043d\u0442\u0435 github, \u0432 \u0441\u0434\u0435\u043b\u0430\u043d\u043d\u043e\u043c fork\" width=\"3416\" height=\"1916\" data-src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/98a\/5a1\/98d\/98a5a198d37234c3061c88d796b39c6d.png\"\/><\/p>\n<div><figcaption>Pull request \u0432 \u043d\u0430\u0448\u0435\u043c \u0430\u043a\u043a\u0430\u0443\u043d\u0442\u0435 github, \u0432 \u0441\u0434\u0435\u043b\u0430\u043d\u043d\u043e\u043c fork<\/figcaption><\/div>\n<\/figure>\n<p><strong>\u041e\u0444\u0444\u0438\u0446\u0438\u0430\u043b\u044c\u043d\u0430\u044f \u0434\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u0430\u0446\u0438\u044f<\/strong><\/p>\n<p><a href=\"https:\/\/git-scm.com\/docs\/git-clone\" rel=\"noopener noreferrer nofollow\"><u>git-clone &#8212; Clone a repository into a new directory<\/u><\/a><br \/><a href=\"https:\/\/git-scm.com\/book\/en\/v2\/Customizing-Git-Git-Configuration\" rel=\"noopener noreferrer nofollow\"><u>Customizing Git &#8212; Git Configuration<\/u><\/a><br \/><a href=\"https:\/\/git-scm.com\/docs\/git-remote#Documentation\/git-remote.txt-emaddem\" rel=\"noopener noreferrer nofollow\"><u>git-remote &#8212; Manage set of tracked repositories<\/u><\/a><br \/><a href=\"https:\/\/git-scm.com\/book\/en\/v2\/Git-Branching-Basic-Branching-and-Merging\" rel=\"noopener noreferrer nofollow\"><u>Git Branching &#8212; Basic Branching and Merging<\/u><\/a><br \/><a href=\"https:\/\/git-scm.com\/docs\/git-status\" rel=\"noopener noreferrer nofollow\"><u>git-status &#8212; Show the working tree status<\/u><\/a><br \/><a href=\"https:\/\/git-scm.com\/docs\/git-add\" rel=\"noopener noreferrer nofollow\"><u>git-add &#8212; Add file contents to the index<\/u><\/a><br \/><a href=\"https:\/\/git-scm.com\/docs\/git-commit\" rel=\"noopener noreferrer nofollow\"><u>git-commit &#8212; Record changes to the repository<\/u><\/a><br \/><a href=\"https:\/\/git-scm.com\/docs\/git-log\" rel=\"noopener noreferrer nofollow\"><u>git-log &#8212; Show commit logs<\/u><\/a><br \/><a href=\"https:\/\/git-scm.com\/docs\/git-push\" rel=\"noopener noreferrer nofollow\"><u>git-push &#8212; Update remote refs along with associated objects<\/u><\/a><br \/><a href=\"https:\/\/git-scm.com\/docs\/git-request-pull\" rel=\"noopener noreferrer nofollow\"><u>git-request-pull &#8212; Generates a summary of pending changes<\/u><\/a><\/p>\n<\/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\/740174\/\"> https:\/\/habr.com\/ru\/articles\/740174\/<\/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-2\">\n<div xmlns=\"http:\/\/www.w3.org\/1999\/xhtml\">\n<p>\u0418\u043d\u0441\u0442\u0440\u0443\u043a\u0446\u0438\u044f \u043d\u0430\u043f\u0438\u0441\u0430\u043d\u0430 \u0434\u043b\u044f \u0441\u0435\u0440\u0432\u0438\u0441\u0430\u00a0<a href=\"https:\/\/github.com\/\" rel=\"noopener noreferrer nofollow\"><u>github<\/u><\/a>. \u0412\u0430\u043c \u043d\u0443\u0436\u043d\u043e \u0432\u043e\u0439\u0442\u0438 \u0432 \u0441\u0432\u043e\u0439 \u0430\u043a\u043a\u0430\u0443\u043d\u0442 \u0438\u043b\u0438 \u0437\u0430\u0440\u0435\u0433\u0438\u0441\u0442\u0440\u0438\u0440\u043e\u0432\u0430\u0442\u044c\u0441\u044f.<\/p>\n<p>\u0412\u0441\u0435 \u043a\u043e\u043c\u0430\u043d\u0434\u044b \u0432\u0432\u043e\u0434\u044f\u0442\u0441\u044f \u0432\u00a0<strong>\u0442\u0435\u0440\u043c\u0438\u043d\u0430\u043b\u0435<\/strong>.<\/p>\n<p><strong>\u0428\u0430\u0433 1<\/strong><\/p>\n<p>\u0414\u0435\u043b\u0430\u0435\u043c\u00a0<code>fork<\/code>\u00a0(\u043a\u043e\u043f\u0438\u044e) \u043d\u0443\u0436\u043d\u043e\u0433\u043e \u043f\u0440\u043e\u0435\u043a\u0442\u0430. \u041f\u0435\u0440\u0435\u0445\u043e\u0434\u0438\u043c \u0432 \u0441\u0432\u043e\u0439 \u0430\u043a\u043a\u0430\u0443\u043d\u0442 \u0438 \u0437\u0430\u0445\u043e\u0434\u0438\u043c \u0432 \u0442\u043e\u043b\u044c\u043a\u043e \u0447\u0442\u043e \u0441\u043e\u0437\u0434\u0430\u043d\u043d\u044b\u0439\u00a0<code>fork<\/code>.<\/p>\n<figure class=\"full-width\">\n<div><figcaption>\u0414\u0435\u043b\u0430\u0435\u043c fork \u043d\u0443\u0436\u043d\u043e\u0433\u043e \u043f\u0440\u043e\u0435\u043a\u0442\u0430<\/figcaption><\/div>\n<\/figure>\n<figure class=\"full-width\">\n<div><figcaption>\u041d\u0430\u0448 \u0441\u0434\u0435\u043b\u0430\u043d\u043d\u044b\u0439 fork \u0432 \u043d\u0430\u0448\u0435\u043c github \u0430\u043a\u043a\u0430\u0443\u043d\u0442\u0435<\/figcaption><\/div>\n<\/figure>\n<p><strong>\u0428\u0430\u0433 2<\/strong><\/p>\n<p>\u041a\u043b\u043e\u043d\u0438\u0440\u0443\u0435\u043c\u00a0<code>fork<\/code>\u00a0(\u043a\u043e\u043f\u0438\u044e) \u043f\u0440\u043e\u0435\u043a\u0442\u0430 \u0438\u0437 \u043f\u0440\u0435\u0434\u044b\u0434\u0443\u0449\u0435\u0433\u043e \u0448\u0430\u0433\u0430 \u043d\u0430 \u0441\u0432\u043e\u0439 \u043a\u043e\u043c\u043f\u044c\u044e\u0442\u0435\u0440. \u041d\u0430\u043f\u0440\u0438\u043c\u0435\u0440, \u0447\u0435\u0440\u0435\u0437 <code>SSH<\/code><\/p>\n<figure class=\"full-width\">\n<div><figcaption>\u041a\u043e\u043f\u0438\u0440\u0443\u0435\u043c \u0430\u0434\u0440\u0435\u0441 fork \u0440\u0435\u043f\u043e\u0437\u0438\u0442\u043e\u0440\u0438\u044f \u0447\u0435\u0440\u0435\u0437 ssh<\/figcaption><\/div>\n<\/figure>\n<p><code>git clone git@github.com:maxdzyubak\/vite.git<\/code><\/p>\n<p><strong>\u0428\u0430\u0433 3<\/strong><\/p>\n<p>\u041d\u0430\u0441\u0442\u0440\u0430\u0438\u0432\u0430\u0435\u043c \u043a\u043e\u043d\u0444\u0438\u0433\u00a0<code>git<\/code>\u00a0\u043b\u043e\u043a\u0430\u043b\u044c\u043d\u043e (<code>local<\/code>). \u041d\u0443\u0436\u043d\u043e \u043f\u043e\u0432\u0442\u043e\u0440\u044f\u0442\u044c \u0434\u043b\u044f \u043a\u0430\u0436\u0434\u043e\u0433\u043e \u043f\u0440\u043e\u0435\u043a\u0442\u0430<\/p>\n<p><code>git config --local user.name maxdzyubak<\/code><\/p>\n<p><code>git config --local user.email maxdzyubak@gmail.com<\/code><\/p>\n<p>\u0418\u043b\u0438 \u0433\u043b\u043e\u0431\u0430\u043b\u044c\u043d\u043e (<code>global<\/code>). \u041d\u0430\u0441\u0442\u0440\u043e\u0438\u0442\u044c \u043e\u0434\u0438\u043d \u0440\u0430\u0437 \u0434\u043b\u044f \u0432\u0441\u0435\u0445 \u043f\u0440\u043e\u0435\u043a\u0442\u043e\u0432<\/p>\n<p><code>git config --global user.name maxdzyubak<\/code><\/p>\n<p><code>git config --global user.email maxdzyubak@gmail.com<\/code><\/p>\n<p><strong>\u0428\u0430\u0433 4<\/strong><\/p>\n<p>\u0414\u0435\u043b\u0430\u0435\u043c \u0443\u043a\u0430\u0437\u0430\u0442\u0435\u043b\u044c \u043d\u0430 \u043e\u0440\u0438\u0433\u0438\u043d\u0430\u043b\u044c\u043d\u044b\u0439 \u0440\u0435\u043f\u043e\u0437\u0438\u0442\u043e\u0440\u0438\u0439\u00a0<code>upstream<\/code>\u00a0\u043e\u0442\u043a\u0443\u0434\u0430 \u043c\u044b \u0434\u0435\u043b\u0430\u043b\u0438\u00a0<code>fork<\/code>\u00a0(\u043a\u043e\u043f\u0438\u044e). \u041e\u043d \u043d\u0443\u0436\u0435\u043d \u0434\u043b\u044f \u0442\u043e\u0433\u043e, \u0447\u0442\u043e\u0431\u044b \u0441\u043a\u0430\u0447\u0438\u0432\u0430\u0442\u044c \u043f\u043e\u0441\u043b\u0435\u0434\u043d\u0438\u0435 \u043e\u0431\u043d\u043e\u0432\u043b\u0435\u043d\u0438\u044f \u043a\u043e\u0434\u0430 \u0438\u0437 \u043e\u0440\u0438\u0433\u0438\u043d\u0430\u043b\u044c\u043d\u043e\u0433\u043e \u0440\u0435\u043f\u043e\u0437\u0438\u0442\u043e\u0440\u0438\u044f. (\u041f\u0440\u043e\u0432\u0435\u0440\u043a\u0430 upstream:\u00a0<code>git remote -v<\/code>)<\/p>\n<p><code>git remote add upstream https:\/\/github.com\/vitejs\/vite.git<\/code><\/p>\n<p><strong>\u0428\u0430\u0433 5<\/strong><\/p>\n<p>\u0421\u043e\u0437\u0434\u0430\u0451\u043c \u043d\u043e\u0432\u0443\u044e \u0432\u0435\u0442\u043a\u0443 \u0438 \u0441\u0440\u0430\u0437\u0443 \u043f\u0435\u0440\u0435\u0445\u043e\u0434\u0438\u043c \u0432 \u043d\u0435\u0451. \u0412\u0441\u0435 \u0438\u0437\u043c\u0435\u043d\u0435\u043d\u0438\u044f \u043f\u0440\u043e\u0438\u0437\u0432\u043e\u0434\u0438\u043c \u0432 \u043d\u0435\u0439. \u042d\u0442\u043e \u0441\u0447\u0438\u0442\u0430\u0435\u0442\u0441\u044f \u0445\u043e\u0440\u043e\u0448\u0435\u0439 \u043f\u0440\u0430\u043a\u0442\u0438\u043a\u043e\u0439<\/p>\n<p><code>git checkout -b new_branch<\/code><\/p>\n<p><strong>\u0428\u0430\u0433 6<\/strong><\/p>\n<p>\u041f\u0440\u043e\u0432\u0435\u0440\u0438\u0442\u044c \u0441\u0442\u0430\u0442\u0443\u0441 \u0441\u0434\u0435\u043b\u0430\u043d\u043d\u044b\u0445 \u0438\u0437\u043c\u0435\u043d\u0435\u043d\u0438\u0439 \u043c\u043e\u0436\u043d\u043e \u043a\u043e\u043c\u0430\u043d\u0434\u043e\u0439<\/p>\n<p><code>git status<\/code><\/p>\n<p><strong>\u0428\u0430\u0433 7<\/strong><\/p>\n<p>\u0414\u043e\u0431\u0430\u0432\u043b\u044f\u0435\u043c \u0438\u0437\u043c\u0435\u043d\u0435\u043d\u0438\u044f \u0432 \u043e\u0442\u0441\u043b\u0435\u0436\u0438\u0432\u0430\u0435\u043c\u044b\u0435 (<code>staged<\/code>). Git \u043d\u0430\u0447\u0438\u043d\u0430\u0435\u0442 \u0441\u043b\u0435\u0434\u0438\u0442\u044c \u0437\u0430 \u0438\u0437\u043c\u0435\u043d\u0435\u043d\u0438\u044f\u043c\u0438 \u0432 \u044d\u0442\u043e\u043c \u0444\u0430\u0439\u043b\u0435\/\u0444\u0430\u0439\u043b\u0430\u0445<\/p>\n<p><code>git add README.md<\/code><\/p>\n<p><strong>\u0428\u0430\u0433 8<\/strong><\/p>\n<p>\u0414\u0435\u043b\u0430\u0435\u043c \u043a\u043e\u043c\u043c\u0438\u0442 (<code>commit<\/code>) \u0441 \u0438\u0437\u043c\u0435\u043d\u0435\u043d\u0438\u044f\u043c\u0438. \u0415\u0441\u043b\u0438 \u0435\u0441\u0442\u044c \u043d\u043e\u043c\u0435\u0440\u00a0<code>issue<\/code>, \u0442\u043e \u043b\u0443\u0447\u0448\u0435 \u0432\u0441\u0435\u0433\u043e \u0432 \u043a\u043e\u043c\u043c\u0438\u0442\u0435 \u043d\u0430\u043f\u0438\u0441\u0430\u0442\u044c \u0442\u0430\u043a:\u00a0<code>[#123] fix bug<\/code>. \u0415\u0441\u043b\u0438 \u043f\u0440\u043e\u0441\u0442\u043e \u0443\u043a\u0430\u0437\u0430\u0442\u044c \u0440\u0435\u0448\u0451\u0442\u043a\u0443 \u0431\u0435\u0437 \u0441\u043a\u043e\u0431\u043e\u043a, \u0442\u043e \u043f\u0440\u0438\u00a0<code>git rebase<\/code>\u00a0\u043e\u043d \u0435\u0451 \u043f\u0440\u043e\u0438\u0433\u043d\u043e\u0440\u0438\u0440\u0443\u0435\u0442<\/p>\n<p><code>git commit -m 'Update README.md'<\/code><\/p>\n<p><strong>\u0428\u0430\u0433 9<\/strong><\/p>\n<p>\u041f\u0440\u043e\u0432\u0435\u0440\u0438\u0442\u044c \u0441\u0434\u0435\u043b\u0430\u043d\u043d\u044b\u0439 \u043a\u043e\u043c\u043c\u0438\u0442<\/p>\n<p><code>git log<\/code><\/p>\n<p><strong>\u0428\u0430\u0433 10<\/strong><\/p>\n<p>\u041f\u0443\u0448\u0438\u043c, \u0441\u0434\u0435\u043b\u0430\u043d\u043d\u044b\u0435 \u0438\u0437\u043c\u0435\u043d\u0435\u043d\u0438\u044f \u0432\u043e \u0432\u043d\u0435\u0448\u043d\u0438\u0439 \u043c\u0438\u0440, \u0442\u0430\u043a \u043a\u0430\u043a \u043f\u043e\u043a\u0430 \u043e\u043d\u0438 \u043d\u0430\u0445\u043e\u0434\u044f\u0442\u0441\u044f \u0442\u043e\u043b\u044c\u043a\u043e \u0443 \u043d\u0430\u0441 \u043b\u043e\u043a\u0430\u043b\u044c\u043d\u043e \u043d\u0430 \u043a\u043e\u043c\u043f\u044c\u044e\u0442\u0435\u0440\u0435, c \u0443\u043a\u0430\u0437\u0430\u043d\u0438\u0435\u043c \u0441\u043e\u0437\u0434\u0430\u043d\u043d\u043e\u0439 \u0432\u0435\u0442\u043a\u0438<\/p>\n<p><code>git push origin new_branch<\/code><\/p>\n<p><strong>\u0428\u0430\u0433 11<\/strong><\/p>\n<p>\u0421\u043e\u0437\u0434\u0430\u0451\u043c \u043f\u0443\u043b\u043b \u0440\u0435\u043a\u0432\u0435\u0441\u0442 (<code>pull request<\/code>) \u043d\u0430\u0436\u0430\u0442\u0438\u0435\u043c \u043d\u0430 \u043a\u043d\u043e\u043f\u043a\u0443 \u0441 \u043d\u0430\u0437\u0432\u0430\u043d\u0438\u0435\u043c\u00a0<code>Compare &amp; pull request<\/code>\u00a0\u043b\u0438\u0431\u043e \u0432 \u043e\u0440\u0438\u0433\u0438\u043d\u0430\u043b\u044c\u043d\u043e\u043c \u0440\u0435\u043f\u043e\u0437\u0438\u0442\u043e\u0440\u0438\u0438 \u0438\u0437 \u043a\u043e\u0442\u043e\u0440\u043e\u0433\u043e \u0434\u0435\u043b\u0430\u043b\u0438\u00a0<code>fork<\/code><\/p>\n<figure class=\"full-width\">\n<div><figcaption>Pull request \u0432 \u043e\u0440\u0438\u0433\u0438\u043d\u0430\u043b\u044c\u043d\u043e\u043c \u0440\u0435\u043f\u043e\u0437\u0438\u0442\u043e\u0440\u0438\u0438<\/figcaption><\/div>\n<\/figure>\n<p>\u043b\u0438\u0431\u043e \u0432 \u043d\u0430\u0448\u0435\u043c <code>github<\/code>\u00a0\u0430\u043a\u043a\u0430\u0443\u043d\u0442\u0435, \u0432 \u0441\u0434\u0435\u043b\u0430\u043d\u043d\u043e\u043c <code>fork<\/code>\u00a0<\/p>\n<figure class=\"full-width\">\n<div><figcaption>Pull request \u0432 \u043d\u0430\u0448\u0435\u043c \u0430\u043a\u043a\u0430\u0443\u043d\u0442\u0435 github, \u0432 \u0441\u0434\u0435\u043b\u0430\u043d\u043d\u043e\u043c fork<\/figcaption><\/div>\n<\/figure>\n<p><strong>\u041e\u0444\u0444\u0438\u0446\u0438\u0430\u043b\u044c\u043d\u0430\u044f \u0434\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u0430\u0446\u0438\u044f<\/strong><\/p>\n<p><a href=\"https:\/\/git-scm.com\/docs\/git-clone\" rel=\"noopener noreferrer nofollow\"><u>git-clone &#8212; Clone a repository into a new directory<\/u><\/a><br \/><a href=\"https:\/\/git-scm.com\/book\/en\/v2\/Customizing-Git-Git-Configuration\" rel=\"noopener noreferrer nofollow\"><u>Customizing Git &#8212; Git Configuration<\/u><\/a><br \/><a href=\"https:\/\/git-scm.com\/docs\/git-remote#Documentation\/git-remote.txt-emaddem\" rel=\"noopener noreferrer nofollow\"><u>git-remote &#8212; Manage set of tracked repositories<\/u><\/a><br \/><a href=\"https:\/\/git-scm.com\/book\/en\/v2\/Git-Branching-Basic-Branching-and-Merging\" rel=\"noopener noreferrer nofollow\"><u>Git Branching &#8212; Basic Branching and Merging<\/u><\/a><br \/><a href=\"https:\/\/git-scm.com\/docs\/git-status\" rel=\"noopener noreferrer nofollow\"><u>git-status &#8212; Show the working tree status<\/u><\/a><br \/><a href=\"https:\/\/git-scm.com\/docs\/git-add\" rel=\"noopener noreferrer nofollow\"><u>git-add &#8212; Add file contents to the index<\/u><\/a><br \/><a href=\"https:\/\/git-scm.com\/docs\/git-commit\" rel=\"noopener noreferrer nofollow\"><u>git-commit &#8212; Record changes to the repository<\/u><\/a><br \/><a href=\"https:\/\/git-scm.com\/docs\/git-log\" rel=\"noopener noreferrer nofollow\"><u>git-log &#8212; Show commit logs<\/u><\/a><br \/><a href=\"https:\/\/git-scm.com\/docs\/git-push\" rel=\"noopener noreferrer nofollow\"><u>git-push &#8212; Update remote refs along with associated objects<\/u><\/a><br \/><a href=\"https:\/\/git-scm.com\/docs\/git-request-pull\" rel=\"noopener noreferrer nofollow\"><u>git-request-pull &#8212; Generates a summary of pending changes<\/u><\/a><\/p>\n<\/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\/740174\/\"> https:\/\/habr.com\/ru\/articles\/740174\/<\/a><br \/><\/br><\/br><\/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-390503","post","type-post","status-publish","format-standard","hentry"],"_links":{"self":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/390503","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=390503"}],"version-history":[{"count":0,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/390503\/revisions"}],"wp:attachment":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=390503"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=390503"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=390503"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}