
- 인프런 빠르게 git - 핵심만 골라 배우는 Git/Github 강의 내용을 기반으로 작성하였습니다.



git branch -M main
git remote add origin https://github.com/IN-PLATFORM/PPD-ML.git
git push -u origin main
GitHub 연결

github(원격저장소)에 생성한 버전을 올라간 것을 확인

버전이 업데이트 되었을 때,

다시 add, commit을 진행

git push를 진행하면,

업데이트 된 버전이 올라감을 알 수 있다.

gir remote -v
1-1. 연결 안되어있다면 연결
git remote add origin [깃헙 repository주소]

2. 모든 파일 add
git add .

git commit -m "[commit message]"
git branch
git push origin main(branch 이름)

git pull origin main(branch 이름)
git push -u origin main
git branch -m [현재 branch name] [바꾸고싶은 branch name]