기술스택/Git
[Git] LikeLion Git
dekoms
2023. 3. 27. 20:55
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`