git add -> 본인의 로컬에 올려줌???
git commit -> 본인의 로컬에만 있음
git push -> 깃헙에 올려줌
…or create a new repository on the command line
echo "# asdf" >> README.md
git init
git add README.md
git commit -m "first commit"
git branch -M main
git remote add origin https://github.com/dekoms/asdf.git
git push -u origin main
…or push an existing repository from the command line
git remote add origin https://github.com/dekoms/asdf.git
git branch -M main
git push -u origin main
`git push -u origin main` === `git push --set-upstream origin main`
'기술스택 > Git' 카테고리의 다른 글
[Git] git branch -d 브랜치 캐싱 (0) | 2024.10.04 |
---|---|
[Git] git 브랜치 흐름 관리 (0) | 2024.08.21 |
[Git] Git 명령어 심화 (0) | 2024.04.12 |
[Git] Issue, PR, git branch 전략 (0) | 2024.02.08 |
[Git] 브랜치 GUI처럼 문자열로 나타내기 (0) | 2023.07.04 |