Showing posts with label bitbucket. Show all posts
Showing posts with label bitbucket. Show all posts

Sunday, July 24, 2016

Import Project from Bitbucket to Eclipse

how to import project to eclipse (by clone),
when you already have project repository on bitbucket


1. File -> Import -> Git -> Project from Git


2. select URI


3. get URI from bitbucket


4. ctrl+v


5. select branches


6. select local directory


7. choose option you want (choose second in my case)



8. following steps are like 'Create Java Project'


9. restart eclipse, check repository and branches


10. right click on project -> Team -> Commit
- select changed files and drag&drop like direction
- summary or memo on commit message
- click 'Commit and Push'


11. OK







Tuesday, July 19, 2016

Create Bitbucket Repository and Connect Eclipse

Ubuntu 14.04
Eclipse Mars 4.5.2


1. join bitbucket and create repository
- dashboard -> repositories -> create repository


- create (can create private repositories only five)



2. install git plug-in on eclipse
- Help -> Install New Software
- fill in ' Work with: http://download.eclipse.org/egit/updates ' or just hit 'git'
- check the box 'Eclipse Git Team Provider'


- next -> next -> I accept  the terms of license agreement -> finish (take few minute.....)
- restart eclipse and can see in import menu


3. create project and connect with bitbucket
- create project and right click on it
- Team -> Share Project


- check 'Use or create repository in parent folder of project'
- choose project you want (already existed....)


- if you can not check, click 'Create Repository' and choose again


4. commit and push
- right click on project -> Team -> Commit
- select and move source files from 'unstaged changes' to 'staged changes'
- commit message is optional


- commit, maybe get error
- right click on project -> Team -> Push Branch 'master'


- fill clone url in ' Location -> URI : ', get from bitbucket


- hit user and password -> next


- next -> finish



- refresh dashboard of bitbucket
- can find commits




ref : http://embedded.kookmin.ac.kr/lectureMobile/index.php/Eclipse_%2B_Github_%EC%82%AC%EC%9A%A9%EB%B2%95