Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Git 원격저장소에 올린 파일 삭제 명령어 #7

Open
yunyoung1819 opened this issue Jul 2, 2023 · 0 comments
Open

Git 원격저장소에 올린 파일 삭제 명령어 #7

yunyoung1819 opened this issue Jul 2, 2023 · 0 comments
Assignees
Labels

Comments

@yunyoung1819
Copy link
Owner

yunyoung1819 commented Jul 2, 2023

상황

Git 원격 저장소에 올린 파일 삭제하기

해결

$ git rm --cached -r 폴더/파일명
$ git commit -am "파일 삭제"
$ git push 

-- cached 옵션 없이 사용하면 원격 저장소와 로컬 저장소 둘 다 삭제
원격 저장소만 지우고 싶다면 --cached 옵션 사용

참고

@yunyoung1819 yunyoung1819 self-assigned this Jul 2, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant