github에서 특정 파일 삭제 하기
lalwr
...분 소요
특정파일(yml파일) 모든곳에서 히스토리 삭제
원격 저장소와 로컬 저장소에 있는 파일을 삭제
원격 저장소의 파일 삭제
* 참고 사이트
git filter-branch -f --index-filter 'git rm --cached --ignore-unmatch *.yml' --prune-empty -- --all # 모든 히스토리에서 해당 파일 삭제
git push origin --force --all
원격 저장소와 로컬 저장소에 있는 파일을 삭제
git rm file1.txt
git commit -m "remove file1.txt"
git push
원격 저장소의 파일 삭제
git rm --cached file1.txt
git commit -m "remove file1.txt"
git push
* 참고 사이트
이전글
...
다음글
...