cso6005 / TIL-Troubleshooting

배움 기록 및 트러블 슈팅 정리
0 stars 0 forks source link

[GIT] 협업 정리 - git bash #25

Closed cso6005 closed 1 year ago

cso6005 commented 1 year ago
git clone {주소}
git branch {만들 branch명} # 브랜치 생성
git checkout {옮기고 싶은 branch}
git status # 상태 확인
git diff # 변경 사항 확인
git log # 로그 확인
git status #확인
git pull origin main # main 의 상태 로컬에 반영
git fetch origin
git merge 
git status # 확인
git add {올릴 파일명, 수정된 파일명} # 파일 추가
git status # 또 확인
git commit -m '커밋내용' # commit 
git push origin {올릴 브랜치} # push 올리기.
git commit
git config --global core.editor "code --wait"