📍
git을 본격적으로 사용하게 되면서 자주 사용하는 명령어들을 정리해보았다. 정말 많이 사용한 명령어들을🌟표시 해보았다.
$ git config --global core.autocrlf input
$ git config --global user.name 'YOUR_NAME'
$ git config --global user.email 'YOUR_EMAIL'
$ git config --global --list
$ git init
$ git add index.html
$ git add .
$ git commit
$ git commit -m '프로젝트 생성'
$ git remote add origin https://github.c...
$ git push origin {branch 명}
$ git pull origin {branch 명}
$ git status
$ git add {충돌해결된 파일}
# 레포에 생성되어있는 브랜치가 어느 것인지 확인
$ git branch
# main 브랜치로 switch
$ git checkout main
# main에 있을 경우 -> otherBranch 내용을 main에 merge
$ git merge {otherBranch}