본문 바로가기
가끔 써서 기억 안나는 내용

git 관련

by 저녁추천좀 2019. 12. 15.

git commit message 수정

git commit --amend

git 로컬 파일 강제로 pull

git fetch --all
git reset --hard origin/master
git pull origin master

git 수정한 파일 되돌리기

git checkout --

git .git 크기 줄이기

git gc --aggressive --prune

이미 tracking된 파일 ignore 하기

git rm -r --cached . 
git add .
git commit -am "clean"