- 追加された行はこの色です。
- 削除された行はこの色です。
#author("2020-04-27T19:46:12+00:00","default:wikiadmin","wikiadmin")
#author("2020-06-02T11:17:34+00:00","default:wikiadmin","wikiadmin")
-Attrassianが提供するgitリポジトリ
*無料プランでできること [#yf3586e4]
-5ユーザーまでであれば、非公開レポジトリの数は無制限
*OAuth接続確認 [#yb0d0480]
https://bitbucket.org/account/settings/app-authorizations/
どこもそうだがたどり着くのに一苦労
*準備 [#jd85027e]
**要約 [#ff140b41]
-公開鍵の作成は通常の手順
-ssh configはそれなりに特殊(同じユーザーだし)
**詳細手順 [#g38052b4]
-SSH公開鍵の登録
ssh-keygen -t rsa -C "for bitbucket myhome" -f ~/.ssh/id_bitbucket
-bitbucketのコンソールにて、id_rsa.pubを登録
-ssh configに登録
# bit bucket
Host bitbucket.org
User git
Port 22
HostName bitbucket.org
TCPKeepAlive yes
IdentitiesOnly yes
IdentityFile ~/.ssh/bitbucket.ppk
# source treeなどでパスフレーズがあるとこけるので、KeyChainに記憶させる。
AddKeysToAgent yes
UseKeychain yes
-確認
ssh -T git@bitbucket
*SSH経由での操作 [#u958de65]
|clone| git clone [email protected]:teamsinspace/リポジトリ名.git|
**WindowsでのSSH鍵 [#x5ba1b38]
intellijは使い物にならず。sshを入れて秘密鍵はMyDocumentフォルダに持ってきて以下のコマンドたたく。現実的なソリューションはgitとopensshいれたcygwinという
ssh -i c:\Users\xxx\Documents\bitbucket.txt [email protected]
*CircleCIとの連携 [#sf26a466]