2017년 12월 1일 금요일

bitbucket 소스 올리기


http://bitbucket.org 접속

계정생성후에 설정들어가서 ssh등록

* ssh key 생성방법 
- ssh-keygen
- pbcopy < ~/.ssh/id_rsa.pub

repository말고 계정 메인들어가서 아바타 왼쪽 클릭하면 설정나옴 거기 메뉴에서 ssh키등록 누르고
라벨 대충쓰고 붙어넣기하면됨

repository 생성 

그럼 화면에 

I'm starting from scratch : 새프로젝트
I have an existing project to push up : 기존 프로젝트 연결


새프로젝트면 폴더 만들기  mkdir 만들고 싶은 경로 에 폴더만들기

기존 프로젝트 있으면 cd  프로 젝트 경로로 들어감

git init

git remote  add origin [ http:// repository 주소 ]

push -u origin master

git remote add [레파지토리명] [REMOTE URL]

git push [레파지토리명] [브런치]


* src refspec master does not match any 에러날 경우


touch initial
git add initial
git commit -m "initial commit"

이렇게치면. 








이런다 그럼 이메일이랑 이름남기고 다시
git commit -m "initial commit"
git push -u origin master

이렇게 하면 올라간다.
.
어떤 파일들은 백업이나 버전관리를 안하고 싶을때가 있다. 예를 들어 컴파일할때 생기는 중간파일등이다. .gitignore파일에 git에서 관리하지 않을 파일들을 넣어두면 된다. 직접만들어도 되고 구글링해도 나온다. 

add의미: git에 add한다는 뜻이다 add하지 안흔 파일은 git 이 관리하지않는다.
commit:반드시 메세지가 있어야한다. 
Local에서 작업한것을 Local Repository에 올릴때 사용

push:remote Repository에 소스를 올릴때 사용. 


댓글 1개:

  1. Do you realize there is a 12 word phrase you can speak to your crush... that will trigger deep feelings of love and instinctual attractiveness to you deep within his chest?

    That's because deep inside these 12 words is a "secret signal" that triggers a man's instinct to love, adore and guard you with all his heart...

    12 Words That Trigger A Man's Love Impulse

    This instinct is so hardwired into a man's genetics that it will make him work harder than before to make your relationship the best part of both of your lives.

    Matter of fact, triggering this powerful instinct is so binding to getting the best possible relationship with your man that the instance you send your man one of the "Secret Signals"...

    ...You will immediately find him open his soul and mind to you in a way he haven't expressed before and he will distinguish you as the only woman in the world who has ever truly attracted him.

    답글삭제