{"id":119,"date":"2022-03-27T21:00:00","date_gmt":"2022-03-27T12:00:00","guid":{"rendered":"https:\/\/www.app-tools.net\/blog\/?p=119"},"modified":"2022-05-09T04:07:21","modified_gmt":"2022-05-08T19:07:21","slug":"post-119","status":"publish","type":"post","link":"https:\/\/www.app-tools.net\/blog\/?p=119","title":{"rendered":"Git\u3067\u4f7f\u3063\u3066\u3044\u3044\u30b3\u30de\u30f3\u30c9"},"content":{"rendered":"\n<p>\u5931\u6557\u3057\u306a\u3044\u305f\u3081\u306egit\u30b3\u30de\u30f3\u30c9<\/p>\n\n\n\n<!--more-->\n\n\n\n<h2 class=\"wp-block-heading\">\u4f7f\u3063\u3066\u3082\u3044\u3044\u30b3\u30de\u30f3\u30c9<\/h2>\n\n\n\n<p>\u79c1\u304c\u958b\u767a\u6642\u306b\u3088\u304f\u4f7f\u3063\u3066\u3044\u308b\u30b3\u30de\u30f3\u30c9\u3002<\/p>\n\n\n\n<pre class=\"wp-block-luxe-blocks-syntaxhighlighter line-numbers language-git\"><code class=\"language-git\">git clone &lt;\u30ea\u30dd\u30b8\u30c8\u30eaURL>\ngit branch\ngit checkout &lt;\u30d6\u30e9\u30f3\u30c1\u540d>\ngit checkout -b &lt;\u30d6\u30e9\u30f3\u30c1\u540d>\ngit checkout &lt;\u30d5\u30a1\u30a4\u30eb>\ngit status\ngit add &lt;\u5909\u66f4\u3057\u305f\u30d5\u30a1\u30a4\u30eb\u30fb\u30d5\u30a9\u30eb\u30c0>\ngit commit -m \"&lt;\u5909\u66f4\u3057\u305f\u5185\u5bb9>\"\ngit log\ngit pull\ngit push\ngit reset &lt;add\u3092\u53d6\u308a\u6d88\u3057\u305f\u3044\u30d5\u30a1\u30a4\u30eb>\ngit merge &lt;\u30de\u30fc\u30b8\u5143\u306e\u30d6\u30e9\u30f3\u30c1><\/code><\/pre>\n\n\n\n<p>\u4e0a\u8a18\u306e\u30b3\u30de\u30f3\u30c9\u3092\u628a\u63e1\u3057\u3066\u3044\u308b\u3060\u3051\u3067\u3001\u4e00\u822c\u7684\u306a\u958b\u767a\u3067\u56f0\u308b\u3053\u3068\u306f\u306a\u3044\u3002<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">\u7406\u89e3\u3057\u306a\u3044\u3067\u4f7f\u3063\u3066\u306f\u3044\u3051\u306a\u3044<\/h2>\n\n\n\n<p>\u30d5\u30a9\u30fc\u30b9\u30d7\u30c3\u30b7\u30e5\uff1a<br>\u300cgit push -f\u300d\u306e\u3088\u3046\u306b\u3057\u3066\u30d7\u30c3\u30b7\u30e5\u3059\u308b\u3053\u3068\u3002<br>\u30a8\u30e9\u30fc\u3067\u30d7\u30c3\u30b7\u30e5\u51fa\u6765\u306a\u304b\u3063\u305f\u304b\u3089\u5b9f\u884c\u3057\u305f\u3002\u3068\u3044\u3046\u3088\u3046\u306a\u5b89\u6613\u306a\u8003\u3048\u3067\u5b9f\u884c\u3057\u3066\u306f\u306a\u3089\u306a\u3044\u3002<br>\u307e\u305a\u306fpush\u3067\u304d\u306a\u3044\u539f\u56e0\u3092\u304d\u3061\u3093\u3068\u628a\u63e1\u3059\u308b\u3053\u3068\u3002<br>\u628a\u63e1\u3067\u304d\u306a\u3044\u5834\u5408\u306f\u8b58\u8005\u306b\u30d8\u30eb\u30d7\u3092\u6c42\u3081\u308b\u3053\u3068\u3002<br>\u7279\u306bmaster\u306a\u3069\u3001\u4ed6\u306e\u4eba\u3068\u5171\u540c\u3067\u958b\u767a\u3057\u3066\u3044\u308b\u3088\u3046\u306a\u30d6\u30e9\u30f3\u30c1\u3067\u30d5\u30a9\u30fc\u30b9\u30d7\u30c3\u30b7\u30e5\u3059\u308b\u3053\u3068\u306f\u81f4\u547d\u7684\u306a\u30df\u30b9\u306b\u306a\u308b\u306e\u3067\u7d76\u5bfe\u306b\u3057\u306a\u3044\u3053\u3068\u3002<\/p>\n\n\n\n<p>\u30ea\u30d9\u30fc\u30b9\uff1a<br>\u79c1\u306f\u52b9\u679c\u7684\u306a\u4f7f\u3044\u65b9\u3092\u77e5\u308a\u307e\u305b\u3093\u3002<br>(\u7406\u5c48\u306f\u77e5\u3063\u3066\u3044\u308b\u304c\u52b9\u679c\u7684\u306b\u6d3b\u7528\u3057\u305f\u3053\u3068\u304c\u306a\u3044)<br>\u899a\u3048\u306a\u304f\u3066\u3082\u4e00\u822c\u7684\u306a\u958b\u767a\u3067\u306f\u56f0\u308a\u307e\u305b\u3093\u3002<br>\u77e5\u308a\u305f\u3044\u4eba\u306f<a rel=\"noreferrer noopener\" href=\"https:\/\/git-scm.com\/\" data-type=\"URL\" data-id=\"https:\/\/git-scm.com\/\" target=\"_blank\">Git<\/a>\u306e\u30c9\u30ad\u30e5\u30e1\u30f3\u30c8\u3092\u5168\u3066\u7406\u89e3\u3059\u308b\u6240\u304b\u3089\u59cb\u3081\u3066\u304f\u3060\u3055\u3044\u3002<br>\u79c1\u306f\u3001Git\u304c\u3069\u306e\u3088\u3046\u306a\u4ed5\u7d44\u307f\u3067\u30bd\u30fc\u30b9\u3092\u7ba1\u7406\u3057\u3066\u3044\u308b\u306e\u304b\u3001\u30ea\u30e2\u30fc\u30c8\u3068\u30ed\u30fc\u30ab\u30eb\u306e\u30ea\u30dd\u30b8\u30c8\u30ea\u306b\u3064\u3044\u3066\u3001\u30b3\u30df\u30c3\u30c8\u306b\u3064\u3044\u3066\u306a\u3069\u4e00\u901a\u308a\u306e\u4e8b\u3092\u7406\u89e3\u3057\u3066\u3044\u308b\u3064\u3082\u308a\u3060\u304c\u3001\u5b9f\u969b\u306e\u958b\u767a\u73fe\u5834\u3067\u30ea\u30d9\u30fc\u30b9\u3092\u6d3b\u7528\u3067\u304d\u308b\u6a5f\u4f1a\u3092\u5f97\u305f\u3053\u3068\u304c\u3042\u308a\u307e\u305b\u3093\u3002<br>\u3069\u3046\u3057\u3066\u4f7f\u3063\u3066\u306f\u3044\u3051\u306a\u3044\u304b\u3068\u3044\u3046\u3068\u3001\u5171\u540c\u3067\u958b\u767a\u3057\u3066\u3044\u308b\u4eba\u306e\u30d6\u30e9\u30f3\u30c1\u306e\u4e92\u63db\u6027\u304c\u306a\u304f\u306a\u308a\u3001\u30b9\u30e0\u30fc\u30ba\u306a\u958b\u767a\u3092\u963b\u5bb3\u3059\u308b\u305f\u3081\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u5931\u6557\u3057\u306a\u3044\u305f\u3081\u306egit\u30b3\u30de\u30f3\u30c9<\/p>\n","protected":false},"author":1,"featured_media":194,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[7],"tags":[8,20],"class_list":["post-119","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-git","tag-git","tag-github"],"_links":{"self":[{"href":"https:\/\/www.app-tools.net\/blog\/index.php?rest_route=\/wp\/v2\/posts\/119","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.app-tools.net\/blog\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.app-tools.net\/blog\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.app-tools.net\/blog\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.app-tools.net\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=119"}],"version-history":[{"count":1,"href":"https:\/\/www.app-tools.net\/blog\/index.php?rest_route=\/wp\/v2\/posts\/119\/revisions"}],"predecessor-version":[{"id":120,"href":"https:\/\/www.app-tools.net\/blog\/index.php?rest_route=\/wp\/v2\/posts\/119\/revisions\/120"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.app-tools.net\/blog\/index.php?rest_route=\/wp\/v2\/media\/194"}],"wp:attachment":[{"href":"https:\/\/www.app-tools.net\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=119"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.app-tools.net\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=119"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.app-tools.net\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=119"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}