:::: 개발 ::::/::: Git :::

자꾸 까먹는 git 로컬에서 원격 ,원격에서 로컬

nayha 2018. 12. 18. 10:17

 

 

 

소스 작업 먼저 하였을때 

원격(github) 에 올리기

cmd ( 해당 디렉토리)

 

git init
git add README.md
git commit -m "first commit"
git branch -M main
git remote add origin https://github.com/behong/2022fastApiStudy.git
git push -u origin main

 

원격에 있는 소스 로컬로 가져올때

 

git clone https://github.com/behong/js-20181217.git

 

 

 

반응형