{"id":1229,"date":"2017-12-14T13:04:09","date_gmt":"2017-12-14T04:04:09","guid":{"rendered":"http:\/\/randt.jp\/?p=1229"},"modified":"2017-12-14T20:56:28","modified_gmt":"2017-12-14T11:56:28","slug":"bitbucket%e3%81%a7privateripository%e3%82%92%e4%bd%9c%e3%82%8b","status":"publish","type":"post","link":"https:\/\/randt.jp\/?p=1229","title":{"rendered":"git\u3068PrivateRipository(bitbucket)\u3092\u4f5c\u308b"},"content":{"rendered":"<ul>\n<li>bitbucket\u3067private ripository\u3092\u4f5c\u6210\u3057\u3066\u304a\u304f<\/li>\n<li>\u4f5c\u696d\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u3067clone\u3059\u308b\n<pre>\r\n$git clone https:\/\/bbbae@bitbucket.org\/bbbae\/private_repository_name\r\n$cd private_repository_name\r\n$git remote -v\r\norigin\thttps:\/\/bbbae@bitbucket.org\/bbbae\/private_repository_name (fetch)\r\norigin\thttps:\/\/bbbae@bitbucket.org\/bbbae\/private_repository_name (push)\r\n<\/pre>\n<\/li>\n<\/ul>\n<dl>\n<dt>\u4f5c\u696d\u72b6\u614b\u3092\u78ba\u8a8d<\/dt>\n<dd>\n<pre>$ git status\r\n\u30d6\u30e9\u30f3\u30c1 master\r\nYour branch is based on 'origin\/master', but the upstream is gone.\r\n  (use \"git branch --unset-upstream\" to fixup)\r\n\u8ffd\u8de1\u3055\u308c\u3066\u3044\u306a\u3044\u30d5\u30a1\u30a4\u30eb:\r\n  (use \"git add <file>...\" to include in what will be committed)\r\n\r\n\tFileManager\/\r\n\r\nnothing added to commit but untracked files present (use \"git add\" to track)\r\n$<\/file><\/pre>\n<\/dd>\n<dt>\u30d5\u30a1\u30a4\u30eb\u3092\u8ffd\u52a0<\/dt>\n<dd>\n<pre>$ git add FileManager\r\n$ git status\r\n\u30d6\u30e9\u30f3\u30c1 master\r\nYour branch is based on 'origin\/master', but the upstream is gone.\r\n  (use \"git branch --unset-upstream\" to fixup)\r\n\u30b3\u30df\u30c3\u30c8\u4e88\u5b9a\u306e\u5909\u66f4\u70b9:\r\n  (use \"git reset HEAD <file>...\" to unstage)\r\n\r\n\tnew file:   FileManager\/a.out\r\n\tnew file:   FileManager\/main.cxx\r\n\r\n$<\/file><\/pre>\n<\/dd>\n<dt>\u8ffd\u52a0\u30d5\u30a1\u30a4\u30eb\u3092\u767b\u9332\u89e3\u9664<\/dt>\n<dd>\n<pre>$ git reset FileManager\/a.out\r\n$ git status\r\n\u30d6\u30e9\u30f3\u30c1 master\r\nYour branch is based on 'origin\/master', but the upstream is gone.\r\n  (use \"git branch --unset-upstream\" to fixup)\r\n\u30b3\u30df\u30c3\u30c8\u4e88\u5b9a\u306e\u5909\u66f4\u70b9:\r\n  (use \"git reset HEAD <file>...\" to unstage)\r\n\r\n\tnew file:   FileManager\/main.cxx\r\n\r\n\u8ffd\u8de1\u3055\u308c\u3066\u3044\u306a\u3044\u30d5\u30a1\u30a4\u30eb:\r\n  (use \"git add <\/file><file>...\" to include in what will be committed)\r\n\r\n\tFileManager\/a.out\r\n\r\n$<\/file><\/pre>\n<\/dd>\n<dt>\u7ba1\u7406\u5916\u306e\u30d5\u30a1\u30a4\u30eb\u3092\u524a\u9664<\/dt>\n<dd>\n<pre>$ git clean -n\r\nWould remove FileManager\/a.out\r\n$ git clean -f\r\nRemoving FileManager\/a.out\r\n$ git clean -n\r\n$<\/pre>\n<\/dd>\n<dt>\u30b3\u30df\u30c3\u30c8<\/dt>\n<dd>\n<pre>$ git commit -m \"adding FileManager\"\r\n[master 1f2726d] adding FileManager\r\n 1 file changed, 20 insertions(+)\r\n create mode 100644 FileManager\/main.cxx\r\n$ git status\r\n\u30d6\u30e9\u30f3\u30c1 master\r\nYour branch is based on 'origin\/master', but the upstream is gone.\r\n  (use \"git branch --unset-upstream\" to fixup)\r\nnothing to commit, working tree clean\r\n$<\/pre>\n<\/dd>\n<dt>\u30d7\u30e9\u30a4\u30d9\u30fc\u30c8\u30ea\u30dd\u30b8\u30c8\u30ea\u3078push<\/dt>\n<dd>\n<pre>\r\n$ git push\r\nPassword for 'https:\/\/bbbae@bitbucket.org': \r\nCounting objects: 8, done.\r\nDelta compression using up to 2 threads.\r\nCompressing objects: 100% (5\/5), done.\r\nWriting objects: 100% (8\/8), 887 bytes | 0 bytes\/s, done.\r\nTotal 8 (delta 0), reused 0 (delta 0)\r\nTo https:\/\/bitbucket.org\/bbbae\/sample_clang\r\n * [new branch]      master -> master\r\n$<\/pre>\n<\/dd>\n<\/dl>\n","protected":false},"excerpt":{"rendered":"<p>bitbucket\u3067private ripository\u3092\u4f5c\u6210\u3057\u3066\u304a\u304f \u4f5c\u696d\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u3067clone\u3059\u308b $git clone https:\/\/bbbae@bitbucket.org\/bbbae\/private_repo &#8230;<\/p>\n<p> <a class=\"continue-reading-link\" href=\"https:\/\/randt.jp\/?p=1229\"><span>Continue reading<\/span><i class=\"crycon-right-dir\"><\/i><\/a> <\/p>\n","protected":false},"author":4,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[149,19],"tags":[151,150],"class_list":["post-1229","post","type-post","status-publish","format-standard","hentry","category-git","category-19","tag-bitbucket","tag-git"],"_links":{"self":[{"href":"https:\/\/randt.jp\/index.php?rest_route=\/wp\/v2\/posts\/1229","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/randt.jp\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/randt.jp\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/randt.jp\/index.php?rest_route=\/wp\/v2\/users\/4"}],"replies":[{"embeddable":true,"href":"https:\/\/randt.jp\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1229"}],"version-history":[{"count":9,"href":"https:\/\/randt.jp\/index.php?rest_route=\/wp\/v2\/posts\/1229\/revisions"}],"predecessor-version":[{"id":1240,"href":"https:\/\/randt.jp\/index.php?rest_route=\/wp\/v2\/posts\/1229\/revisions\/1240"}],"wp:attachment":[{"href":"https:\/\/randt.jp\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1229"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/randt.jp\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1229"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/randt.jp\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1229"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}