기존 디렉토리에 git clone

Jmnote (토론 | 기여)님의 2025년 1월 8일 (수) 13:46 판 (→‎개요)
(차이) ← 이전 판 | 최신판 (차이) | 다음 판 → (차이)

1 개요[ | ]

기존 디렉토리에 git clone
  • 이미 있는 디렉토리에 git clone을 할 수는 없지만 비슷하게 하려면...
GIT_REPO_URL=https://github.com/octocat/Spoon-Knife.git
GIT_BRANCH=main

git init
git remote add origin $GIT_REPO_URL
git fetch
git checkout -t origin/$GIT_BRANCH

2 같이 보기[ | ]

문서 댓글 ({{ doc_comments.length }})
{{ comment.name }} {{ comment.created | snstime }}