기존 디렉토리에 git clone

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 }}