{"id":489,"date":"2016-09-20T21:07:23","date_gmt":"2016-09-20T12:07:23","guid":{"rendered":"http:\/\/www.typea.info\/blog\/index.php\/2016\/09\/20\/android_studio_gitpush\/"},"modified":"2016-09-20T21:07:23","modified_gmt":"2016-09-20T12:07:23","slug":"android_studio_gitpush","status":"publish","type":"post","link":"https:\/\/www.typea.info\/blog\/index.php\/2016\/09\/20\/android_studio_gitpush\/","title":{"rendered":"Android Studio Git\u30ea\u30e2\u30fc\u30c8\u30ea\u30dd\u30b8\u30c8\u30ea\u306bpush"},"content":{"rendered":"<p>Github \u3092\u4f7f\u3048\u3070\u3044\u3044\u306e\u3060\u308d\u3046\u304c\u3001\u7121\u511f\u5229\u7528\u3060\u3068\u3001\u30bd\u30fc\u30b9\u30b3\u30fc\u30c9\u304c\u516c\u958b\u3055\u308c\u3066\u3057\u307e\u3046(\u3093\u3058\u3083\u306a\u304b\u3063\u305f\u304b\u3057\u3089)\u3053\u3068\u3082\u3042\u308a\u3001\u81ea\u524d\u3067Git\u30b5\u30fc\u30d0\u30fc\u3092\u7acb\u3066\u3066\u3044\u308b\u3002<\/p>\n<p><a href=\"https:\/\/www.typea.info\/blog\/index.php\/2015\/04\/02\/gitwebgit\">GitWeb\u3067\u7c21\u5358\u306bGit\u30b5\u30fc\u30d0\u30fc\u306e\u60c5\u5831\u3092\u95b2\u89a7\u3067\u304d\u308b\u3088\u3046\u306b\u3059\u308b<\/a><\/p>\n<p>\u305d\u3053\u306b\u3001\u30ea\u30dd\u30b8\u30c8\u30ea\u3092\u4f5c\u6210\u3057\u3001Android Studio\u304b\u3089\u63a5\u7d9a\u3057\u305f\u3044\u3002<\/p>\n<h2>1.\u30ea\u30e2\u30fc\u30c8\u5074\u306e\u30ea\u30dd\u30b8\u30c8\u30ea\u4f5c\u6210<\/h2>\n<pre class=\"prettyprint linenums\"># git init --bare {\u30ea\u30dd\u30b8\u30c8\u30ea\u540d}\r\nInitialized empty Git repository in \/var\/www\/git\/{\u30ea\u30dd\u30b8\u30c8\u30ea\u540d}\/<\/pre>\n<p>&#160;<\/p>\n<h2>2.Android Studio \u4f5c\u696d<\/h2>\n<h3>2.1&#160; \u30ed\u30fc\u30ab\u30eb\u306e\u30ea\u30dd\u30b8\u30c8\u30ea\u3092\u4f5c\u6210\u3059\u308b<\/h3>\n<p>\u30e1\u30cb\u30e5\u30fc &#8211; VCS \u2013 Import into Version Control \u2013 Create Git Repository<\/p>\n<p><a href=\"https:\/\/www.typea.info\/blog\/wp-content\/uploads\/image\/Android-Studio-Git_11D96\/android_studio_git01.jpg\"><img loading=\"lazy\" decoding=\"async\" title=\"android_studio_git01\" style=\"border-left-width: 0px; border-right-width: 0px; background-image: none; border-bottom-width: 0px; padding-top: 0px; padding-left: 0px; display: inline; padding-right: 0px; border-top-width: 0px\" border=\"0\" alt=\"android_studio_git01\" src=\"https:\/\/www.typea.info\/blog\/wp-content\/uploads\/image\/Android-Studio-Git_11D96\/android_studio_git01_thumb.jpg\" width=\"384\" height=\"268\" \/><\/a><\/p>\n<p>\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u306e\u30eb\u30fc\u30c8\u3092\u9078\u629e\u3057\u3001OK<\/p>\n<p><a href=\"https:\/\/www.typea.info\/blog\/wp-content\/uploads\/image\/Android-Studio-Git_11D96\/android_studio_git02.jpg\"><img loading=\"lazy\" decoding=\"async\" title=\"android_studio_git02\" style=\"border-left-width: 0px; border-right-width: 0px; background-image: none; border-bottom-width: 0px; padding-top: 0px; padding-left: 0px; display: inline; padding-right: 0px; border-top-width: 0px\" border=\"0\" alt=\"android_studio_git02\" src=\"https:\/\/www.typea.info\/blog\/wp-content\/uploads\/image\/Android-Studio-Git_11D96\/android_studio_git02_thumb.jpg\" width=\"269\" height=\"324\" \/><\/a><\/p>\n<p>\u30e1\u30cb\u30e5\u30fc &#8211; VCS \u2013 Git \u304b\u3089\u3001 \u8a66\u3057\u306b\u30b3\u30df\u30c3\u30c8<\/p>\n<p><a href=\"https:\/\/www.typea.info\/blog\/wp-content\/uploads\/image\/Android-Studio-Git_11D96\/android_studio_git03.jpg\"><img loading=\"lazy\" decoding=\"async\" title=\"android_studio_git03\" style=\"border-left-width: 0px; border-right-width: 0px; background-image: none; border-bottom-width: 0px; padding-top: 0px; padding-left: 0px; margin: 0px; display: inline; padding-right: 0px; border-top-width: 0px\" border=\"0\" alt=\"android_studio_git03\" src=\"https:\/\/www.typea.info\/blog\/wp-content\/uploads\/image\/Android-Studio-Git_11D96\/android_studio_git03_thumb.jpg\" width=\"244\" height=\"191\" \/><\/a><\/p>\n<p>\u30e1\u30cb\u30e5\u30fc &#8211; VCS &#8211; Git &#8211; push \u3092\u9078\u629e<\/p>\n<p><a href=\"https:\/\/www.typea.info\/blog\/wp-content\/uploads\/image\/Android-Studio-Git_11D96\/android_studio_git04.jpg\"><img loading=\"lazy\" decoding=\"async\" title=\"android_studio_git04\" style=\"border-left-width: 0px; border-right-width: 0px; background-image: none; border-bottom-width: 0px; padding-top: 0px; padding-left: 0px; display: inline; padding-right: 0px; border-top-width: 0px\" border=\"0\" alt=\"android_studio_git04\" src=\"https:\/\/www.typea.info\/blog\/wp-content\/uploads\/image\/Android-Studio-Git_11D96\/android_studio_git04_thumb.jpg\" width=\"253\" height=\"290\" \/><\/a><\/p>\n<p>Define remote \u30ea\u30f3\u30af\u304c\u51fa\u73fe(\u76f4\u63a5\u8a2d\u5b9a\u3092\u547c\u3073\u51fa\u3059\u3059\u3079\u304c\u3042\u308b\u306e\u304b\u3082)<\/p>\n<p><a href=\"https:\/\/www.typea.info\/blog\/wp-content\/uploads\/image\/Android-Studio-Git_11D96\/android_studio_git05.jpg\"><img loading=\"lazy\" decoding=\"async\" title=\"android_studio_git05\" style=\"border-left-width: 0px; border-right-width: 0px; background-image: none; border-bottom-width: 0px; padding-top: 0px; padding-left: 0px; display: inline; padding-right: 0px; border-top-width: 0px\" border=\"0\" alt=\"android_studio_git05\" src=\"https:\/\/www.typea.info\/blog\/wp-content\/uploads\/image\/Android-Studio-Git_11D96\/android_studio_git05_thumb.jpg\" width=\"306\" height=\"306\" \/><\/a><\/p>\n<p>\u51fa\u73fe\u3057\u305f\u30c0\u30a4\u30a2\u30ed\u30b0\u306b\u3001\u30ea\u30e2\u30fc\u30c8\u30ea\u30dd\u30b8\u30c8\u30ea\u540d\u3068\u3001URL\u3092\u5165\u529b\u3059\u308b\u3002<\/p>\n<p>\u81ea\u5206\u306e\u74b0\u5883\u3067\u306f\u3001SSH\u3092\u5229\u7528\u3057\u3066\u3044\u308b\u305f\u3081\u3001\u5099\u5fd8\u3002<\/p>\n<pre class=\"prettyprint linenums\">ssh:\/\/{\u30e6\u30fc\u30b6\u30fc<a href=\"mailto:}@rev.typea.info\">}@rev.typea.info<\/a>:{\u30dd\u30fc\u30c8\u756a\u53f7}\/var\/www\/git\/{\u30ea\u30dd\u30b8\u30c8\u30ea\u540d}<\/pre>\n<p>&#160;<\/p>\n<p><a href=\"https:\/\/www.typea.info\/blog\/wp-content\/uploads\/image\/Android-Studio-Git_11D96\/android_studio_git08.jpg\"><img loading=\"lazy\" decoding=\"async\" title=\"android_studio_git08\" style=\"border-left-width: 0px; border-right-width: 0px; background-image: none; border-bottom-width: 0px; padding-top: 0px; padding-left: 0px; display: inline; padding-right: 0px; border-top-width: 0px\" border=\"0\" alt=\"android_studio_git08\" src=\"https:\/\/www.typea.info\/blog\/wp-content\/uploads\/image\/Android-Studio-Git_11D96\/android_studio_git08_thumb.jpg\" width=\"306\" height=\"160\" \/><\/a><\/p>\n<p>\u6b63\u3057\u304f\u8a2d\u5b9a\u3067\u304d\u305f\u3088\u3046\u3060\u3002PUSH\u5b9f\u884c\uff01<\/p>\n<p><a href=\"https:\/\/www.typea.info\/blog\/wp-content\/uploads\/image\/Android-Studio-Git_11D96\/android_studio_git07.jpg\"><img loading=\"lazy\" decoding=\"async\" title=\"android_studio_git07\" style=\"border-left-width: 0px; border-right-width: 0px; background-image: none; border-bottom-width: 0px; padding-top: 0px; padding-left: 0px; display: inline; padding-right: 0px; border-top-width: 0px\" border=\"0\" alt=\"android_studio_git07\" src=\"https:\/\/www.typea.info\/blog\/wp-content\/uploads\/image\/Android-Studio-Git_11D96\/android_studio_git07_thumb.jpg\" width=\"306\" height=\"301\" \/><\/a><\/p>\n<h2>3.\u6210\u529f<\/h2>\n<p><a href=\"https:\/\/www.typea.info\/blog\/index.php\/2015\/04\/02\/gitwebgit\">GitWeb<\/a> \u3067\u3061\u3083\u3093\u3068\u30b3\u30df\u30c3\u30c8\u30b3\u30e1\u30f3\u30c8\u304c\u8868\u793a\u3055\u308c\u305f\uff01<\/p>\n<p><a href=\"https:\/\/www.typea.info\/blog\/wp-content\/uploads\/image\/Android-Studio-Git_11D96\/android_studio_git09.jpg\"><img loading=\"lazy\" decoding=\"async\" title=\"android_studio_git09\" style=\"border-left-width: 0px; border-right-width: 0px; background-image: none; border-bottom-width: 0px; padding-top: 0px; padding-left: 0px; display: inline; padding-right: 0px; border-top-width: 0px\" border=\"0\" alt=\"android_studio_git09\" src=\"https:\/\/www.typea.info\/blog\/wp-content\/uploads\/image\/Android-Studio-Git_11D96\/android_studio_git09_thumb.jpg\" width=\"306\" height=\"168\" \/><\/a><\/p>\n<p>\u3081\u3067\u305f\u3057\u3081\u3067\u305f\u3057\u3002<\/p>\n<p><a href=\"https:\/\/www.amazon.co.jp\/%E9%BB%92%E5%B8%AF%E3%82%A8%E3%83%B3%E3%82%B8%E3%83%8B%E3%82%A2%E3%81%8C%E6%95%99%E3%81%88%E3%82%8B%E3%83%97%E3%83%AD%E3%81%AE%E6%8A%80%E8%A1%93-Android%E9%96%8B%E7%99%BA%E3%81%AE%E6%95%99%E7%A7%91%E6%9B%B8-%E3%83%A4%E3%83%95%E3%83%BC%E9%BB%92%E5%B8%AF%E3%82%B7%E3%83%AA%E3%83%BC%E3%82%BA-%E7%AD%92%E4%BA%95-%E4%BF%8A%E7%A5%90\/dp\/4797385367\/ref=as_li_ss_il?ie=UTF8&amp;qid=1474373138&amp;sr=8-3&amp;keywords=android&amp;linkCode=li2&amp;tag=typea09-22&amp;linkId=c2ff4afe1107c9505f01d682c19df6f0\" target=\"_blank\"><img decoding=\"async\" border=\"0\" src=\"\/\/ws-fe.amazon-adsystem.com\/widgets\/q?_encoding=UTF8&amp;ASIN=4797385367&amp;Format=_SL160_&amp;ID=AsinImage&amp;MarketPlace=JP&amp;ServiceVersion=20070822&amp;WS=1&amp;tag=typea09-22\" \/><\/a><img loading=\"lazy\" decoding=\"async\" style=\"border-top-style: none !important; border-left-style: none !important; border-bottom-style: none !important; border-right-style: none !important; margin: 0px\" border=\"0\" alt=\"\" src=\"https:\/\/ir-jp.amazon-adsystem.com\/e\/ir?t=typea09-22&amp;l=li2&amp;o=9&amp;a=4797385367\" width=\"1\" height=\"1\" \/><\/p>\n<p>\u4e45\u3005\u306bAndroid\u672c\u8cfc\u5165\u3057\u305f\u3002\u3061\u3087\u3063\u3068\u304a\u5024\u6bb5\u306f\u306f\u308b\u304c\u3001\u3053\u308c\u306f\u3001\u826f\u66f8\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Github \u3092\u4f7f\u3048\u3070\u3044\u3044\u306e\u3060\u308d\u3046\u304c\u3001\u7121\u511f\u5229\u7528\u3060\u3068\u3001\u30bd\u30fc\u30b9\u30b3\u30fc\u30c9\u304c\u516c\u958b\u3055\u308c\u3066\u3057\u307e\u3046(\u3093\u3058\u3083\u306a\u304b\u3063\u305f\u304b\u3057\u3089)\u3053\u3068\u3082\u3042\u308a\u3001\u81ea\u524d\u3067Git\u30b5\u30fc\u30d0\u30fc\u3092\u7acb\u3066\u3066\u3044\u308b\u3002 GitWeb\u3067\u7c21\u5358\u306bGit\u30b5\u30fc\u30d0\u30fc\u306e\u60c5\u5831\u3092\u95b2\u89a7\u3067\u304d\u308b\u3088\u3046\u306b\u3059\u308b \u305d [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"sns_share_botton_hide":"","vkExUnit_sns_title":"","_vk_print_noindex":"","sitemap_hide":"","_veu_custom_css":"","veu_display_promotion_alert":"","vkexunit_cta_each_option":"","footnotes":""},"categories":[39,94,43],"tags":[],"class_list":["post-489","post","type-post","status-publish","format-standard","hentry","category-android","category-android-studio","category-git"],"veu_head_title_object":{"title":"","add_site_title":""},"_links":{"self":[{"href":"https:\/\/www.typea.info\/blog\/index.php\/wp-json\/wp\/v2\/posts\/489","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.typea.info\/blog\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.typea.info\/blog\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.typea.info\/blog\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.typea.info\/blog\/index.php\/wp-json\/wp\/v2\/comments?post=489"}],"version-history":[{"count":0,"href":"https:\/\/www.typea.info\/blog\/index.php\/wp-json\/wp\/v2\/posts\/489\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.typea.info\/blog\/index.php\/wp-json\/wp\/v2\/media?parent=489"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.typea.info\/blog\/index.php\/wp-json\/wp\/v2\/categories?post=489"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.typea.info\/blog\/index.php\/wp-json\/wp\/v2\/tags?post=489"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}