기존 디렉토리에 git clone

Jmnote (토론 | 기여)님의 2025년 1월 8일 (수) 13:40 판 (새 문서: ==개요== ;기존 디렉토리에 git clone * 이미 있는 디렉토리에 git clone을 할 수는 없지만 비슷하게 하려면... <syntaxhighlight lang='bash'> GIT_REPO_URL=ht...)
(차이) ← 이전 판 | 최신판 (차이) | 다음 판 → (차이)

1 개요

기존 디렉토리에 git clone
  • 이미 있는 디렉토리에 git clone을 할 수는 없지만 비슷하게 하려면...
GIT_REPO_URL=https://github.com/zetaoss/zengine.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 }}