github에서 저장소를 복제 할 때 (그리고 github에 로그인 한 경우) Repo를 "복제"하는 3 가지 옵션/링크가 있습니다.
- SSH
- HTTP는
- GIT는
당신이 로그인하지 않은 경우에만이 옵션
- HTTP를 표시
(읽기 전용) 읽기
- GIT 읽기 에만
파일 .git에서
/당신이 할 수있는 최선은 함께 해당 원격 제거, 당신은이 읽기 전용으로 선택하는 경우가 대부분 [원격 "기원"]
url = [email protected]:username/project.git (SSH)
url = https://[email protected]/username/project.git (HTTP)
url = https://github.com/username/project.git (HTTP Read only)
url = git://github.com/username/project.git (Git Read only)
에서, 당신은 추가 어느 볼 수 있습니다 config (설정) :
git remote rm origin
은 그 후 새 리모컨을 추가 할 수 있습니다
git remote add origin https://[email protected]/username/project.git
(HTTP의 경우)
HTTPS (SSH에 대한) 6,
또는
git remote add origin [email protected]:username/project.git
를 설정하는 가장 간단하지만
(암호를 일반 텍스트를 저장하지 않으려면) 당신은 모든 푸시/풀에 대한 암호를 입력해야합니다
리모컨을 설정 한 후, 당신은으로 밀 수 git push origin branchname
자세한 정보는 자식 설명서 페이지에서 확인할 수 있습니다 : http://help.github.com/remotes/
가능한 중복 [초보자를위한 힘내 : 최종 실질 가이드] (http://stackoverflow.com/questions/315911/git-for-beginners-the-definitive-practical-guide) –