본문 바로가기

Useful Information

Bitbucket Initial Setting and Commend


Bitbucket은 소스커드 버전 컨트롤을 위한 Private Repository를
공짜로 쓸수 있게 해주는 GIT 서비스이다. 

GIT자체가 Eclipse 같은 IDE의 플러그인들이 불안한 점이 있어서
결국은 Terminal에서 Command로 모든 것을 처리하게 된다.

1. Setup GIT on your local directory

mkdir /path/to/your/projectcd /path/to/your/projectgit initgit remote add origin https://gsgphg@bitbucket.org/@userid@/moment_method.git
2. Create a file and PUSH
echo "Hogun Park" >> contributors.txtgit add contributors.txtgit commit -m 'Initial commit with contributors'git push -u origin master
3. Commit and Push
git add --all # directory를 추가 git commit -am "initial codes" # 변경사항을 commit (자기 local clone에) git push origin master # master로 push