【tutorial】 기존 프로젝트를 Git 관리에 추가 → Bitbucket으로 푸시 (GitBash)
2953 단어 Bitbucket
htps : // 이 m/d778980/이고 ms/063에 3d04fd6d2bf91아 bd
2018/04/17에 실시.
1. 기존 프로젝트를 Git 관리에 추가.
htps : // m / d778980 / ms / 5bf67fc에서 80에서 1830635
2. GitBash를 시작합니다. ↓의 커멘드로 비밀키와 공개키를 작성.
mkdir ~/.ssh
cd ~/.ssh
ssh-keygen -t rsa -C 'メールアドレス'
3. 아무것도 생각하지 않고 Enter를 세 번.
Generating public/private rsa key pair.
Enter file in which to save the key: →Enter1回目
Enter passphrase (empty for no passphrase): →Enter2回目
Enter same passphrase again: →Enter3回目
4. config 파일을 만듭니다.
touch config
chmod 700 config
5. config 파일을 편집.
vim config
Host bitbucket.org
HostName bitbucket.org
IdentityFile ~/.ssh/id_rsa
User git
Port 22
TCPKeepAlive yes
IdentitiesOnly yes
6. ↓의 커멘드로 공개키를 클립보드에 카피.
clip < ~/.ssh/id_rsa.pub
7. Bitbucket에 로그인. Bitbucket settings를 클릭합니다.

8. SSH 키를 클릭합니다.

9. 키 추가를 클릭합니다.

10. Label을 적당하게 입력해 Key에 「6.」로 카피한 값을 붙여 넣습니다. 키 추가를 클릭합니다.

11. 리포지토리를 만듭니다.

12. 리포지토리 이름을 입력합니다. Include a README?를 No로 변경하고 리포지토리 만들기를 클릭합니다.

13. GitBash를 시작하고 로컬 프로젝트로 이동합니다. 이번에는 「~/Desktop/project」
cd ~/Desktop/project
14. ↓의 커맨드로 리포지토리를 묶어, 푸시.
git remote add origin ssh://[email protected]:(アカウント名)/(プロジェクト名).git
例:git remote add origin ssh://[email protected]:d778980/project.git
git push -u origin master
끝.
Reference
이 문제에 관하여(【tutorial】 기존 프로젝트를 Git 관리에 추가 → Bitbucket으로 푸시 (GitBash)), 우리는 이곳에서 더 많은 자료를 발견하고 링크를 클릭하여 보았다 https://qiita.com/d778980/items/06a7653f58d8b94c0674텍스트를 자유롭게 공유하거나 복사할 수 있습니다.하지만 이 문서의 URL은 참조 URL로 남겨 두십시오.
우수한 개발자 콘텐츠 발견에 전념
(Collection and Share based on the CC Protocol.)