본문 바로가기

Programming

[Bitbucket] Git repository 등록 방법 (리눅스)

Bitbucket 설정 부분

Bitbucket 메인에서 왼쪽 상단의 + 모양 클릭

 

Repository 선택
project 선택 및 Repository name 설정
등록 완료

Local 설정 부분

01 터미널 창 실행(Ctrl + Alt + t)

 

02 repository 등록 할 폴더로 이동

cd 폴더 경로

 

03 git 등록

git init

 

04 git repository 주소 등록

git remote add origin https://(아이디)@bitbucket.org/(아이디)/(repository명).git

 

05 파일 등록

git add *

 

06 등록 내용 commit

git commit -m "(commit 코멘트)"

 

07 commit push

git push origin master

 

08 bitbucket 비밀번호 입력

 

09 등록완료