Git(2)
-
유용한 Git 명령어 (2)
local/remote 에 있는 파일/폴더 삭제 - git rm 파일 이름 - git rm -r 폴더 이름 remote에 있는 파일/폴더 삭제 - git rm --cached 파일 이름 - git rm --cached -r 폴더 이름 git branch 강제 checkout - git checkout -f 브랜치명 git log에서 나가기 : Q 누르기 remote에 있는 branch 덮어쓰기 git fetch --all git reset --hard origin/ 로컬에 있는 파일 remote 강제로 push 하기 git push origin +branch-name git pull 취소 git reset --hard ORIG_HEAD
2022.06.13 -
유용한 Git 명령어 정리 (1)
자꾸 까먹어서 기록용으로 남긴다. - 특정 브랜치 특정 파일 patch git checkout -p [브랜치] [파일 경로] - 다른 branch에서 pull 해오기 git remote update git pull origin [브랜치이름] - 특정 커밋 pull 해오기 git cherry-pick [커밋 넘버]
2022.04.28