5
8

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

STS(eclipse)(Spring-boot)によるbitbucketへのプッシュ

Posted at

目的

Spring-bootによる開発環境STSからフリーのホスティングサービスBitbucketへのPushを行う

環境

  1. STS(Eclipse)
  2. Spring-Boot
  3. Bitbucket
  4. git

手順

gitの利用開始

プロジェクトを選択し、Share Projectを選択
スクリーンショット 2016-02-14 20.51.12.png

ローカルにリポジトリを新規作成する場合はCreateを選択し、
作成するリポジトリのパスを指定し作成する

スクリーンショット 2016-02-14 20.51.51.png

Commitを選択し   
最初のコミットを行う
スクリーンショット 2016-02-14 20.52.19.png

Bitbucket

リモートリポジトリを作成する  
※ 複数メンバーで共有する場合は、先にチームを作成し、チームの所有するリポジトリとして作成する

スクリーンショット 2016-02-14 20.58.45.png

ローカルからソースを受け取る
今回はローカルにプロジェクトがあるため、
I have existing project を選択

スクリーンショット 2016-02-14 21.00.09.png

コマンドからプッシュするためのコマンドが表示される。

スクリーンショット 2016-02-14 21.02.14.png

STSからのPUSH

ただ、今回はSTSからプッシュを行うため、

以下のコマンドの内容と同じ設定で、STSからプッシュを行う

git remote add origin git@bitbucket.org:yukihigasi/testpush.git

STSより、Team -> push Branch 'master'を選択し 登録画面を開く
スクリーンショット 2016-02-14 21.07.14.png

スクリーンショット 2016-02-14 21.06.57.png

先ほどの内容を設定します   

git remote add origin git@bitbucket.org:yukihigasi/testpush.git   

ここから

Remote name: origin
Host: bitbucket.org
Repogitory path: yukihigasi/testpush.git

等を読み取り、以下のように設定します
スクリーンショット 2016-02-14 21.10.31.png

・ protcolはhttpsとして、HOST Repository pathを入力すると、URIは保管される
・ UserとpasswardはBitbucketへ登録したメールアドレスとパスワードを設定する

あとはウィザードに従いNext を選択する

BitBucketからの確認

処理が完了すると、Bitbucketのソースから確認すると、プロジェクトがPushされていることが確認できる
スクリーンショット 2016-02-14 21.15.55.png

5
8
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
5
8

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?