[iOS Swift] 삽질이야기 git remote add origin [website/wrong username/repo name.git] 의 오타시

JB
Nov 26, 2020

--

프로젝트 생성 후 Github에 첫번째 푸시 시에 아래와 같이

git remote add origin [website/wrong username/repo name.git]

명령어를 넣어주어 프로젝트를 푸시할 url 경로를 잡아줍니다.

이때, 혹시라도 실수로 url을 잘못 넣어주었다면?

git remote set-url origin [새로운 url.git]

을 넣어주면 정상적으로 git remote url이 변경 됩니다.

혹시라도 git remote에 관한 명령어를 보고 싶으시다면,

$git remote help

명령어를 통해 remote와 관련된 명령어를 볼 수 있습니다.

간단하쥬?

Sign up to discover human stories that deepen your understanding of the world.

Free

Distraction-free reading. No ads.

Organize your knowledge with lists and highlights.

Tell your story. Find your audience.

Membership

Read member-only stories

Support writers you read most

Earn money for your writing

Listen to audio narrations

Read offline with the Medium app

--

--

JB
JB

Written by JB

iOS engineer @kakaobank

No responses yet

Write a response