계정 이름, email변경
$ git config --global user.name 변경할 계정 이름
$ git config --global user.email 변경할 계정 이메일
원격저장소 추가
git remote add origin 주소
원격저장소 브렌치 삭제
git push origin --delete 브랜치명
git branch -d 브랜치명
git push origin 브랜치명
원격저장소 파일 삭제
git rm --cached [filename]
오리진 동기화
git fetch origin
push
git push -u origin +master - 강제푸쉬
clone -b 특정 브랜치 하나만 clone
git clone -b {branch_name} --single-branch {저장소 URL}
가장 최근의 commit 수정
git commit --amend
rebase로 수정
git rebase -i HEAD~개수
LF will be replaced by CRLF 해결
git config --global core.autocrlf true
git main 브랜치 이름 바꾸기
git branch -m master main
git main브랜치 default 이름 바꾸기
git config --global init.defeaultBranch main