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

Add instruction on removing cached directory/file from a repository #154

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
18 changes: 14 additions & 4 deletions README.ko.md
Expand Up @@ -709,8 +709,8 @@ $ git rm $(git ls-files -d)
$ git status
On branch master
Changes not staged for commit:
deleted: a
deleted: c
deleted: a
deleted: c

$ git rm $(git ls-files -d)
rm 'a'
Expand All @@ -719,8 +719,18 @@ rm 'c'
$ git status
On branch master
Changes to be committed:
deleted: a
deleted: c
deleted: a
deleted: c
```

### Removing a directory/file from a repository
만약 .gitignore에 파일이나 폴더를 적어넣는걸 까먹었을땐,
이 커맨드들로 이미 push나 merge된걸 지울수 있습니다.
대부분 node_modules이나 bower_components를 적는걸 까먹었을때 이걸 씁니다
```
git rm -r --cached node_modules
git commit -m 'Removed cached folder'
git push origin master
```

### Previous Branch
Expand Down