Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

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

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Added

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