728x90

git 처음 연습할 때 정리해 놓았던거 같은데 지속적으로 사용하면 도움이 될 것 같아서 정리해 봅니다.

 

새로 만들때

>>>>  create a new repository on the command line   <<<<
echo "# study01" >> README.md
git init
git add README.md
git commit -m "first commit"
git branch -M master
# git remote add origin https://github.com/si0-lab/study01.git
git remote add origin https://github.com/[계정]/[레파지토리명].git
git push -u origin master

기존에 있는 것에 올릴때 

>>>>  push an existing repository from the command line  <<<<
# git remote add origin https://github.com/si0-lab/study01.git
git remote add origin https://github.com/[계정]/[레파지토리명].git
git branch -M master
git push -u origin master

 

 

728x90

'프로그램 > 짜투리상식' 카테고리의 다른 글

코드표기법(2024.08)  (0) 2024.08.07
[docker] ubuntu 20.04 (202305)  (0) 2023.05.29
Dorker에 jenkins 설치(2023.04)  (0) 2023.04.17
Dorker에 Oracle 설치(2023.04)  (3) 2023.04.15
Dorker 윈도우에 설치하기( 2023.04 )  (0) 2023.04.15

+ Recent posts