The rules in your .gitignore
file only apply to untracked files. Since the files under that directory were already committed in your repository, you have to unstage them, create a commit, and push that to GitHub:
1 | git rm -r --cached some-directory |
You can’t delete the file from your history without rewriting the history of your repository - you shouldn’t do this if anyone else is working with your repository, or you’re using it from multiple computers. If you still want to do that, you can use git filter-branch
to rewrite the history - there is a helpful guide to that here.
Additionally, note the output from git rm -r --cached some-directory
will be something like:
1 | rm 'some-directory/product/cache/1/small_image/130x130/small_image.jpg' |
The rm
is feedback from git about the repository; the files are still in the working directory.
NVM = Node Version Manager. Là công cụ quản lý nhiều phiên bản Node.js trên cùng một máy tính.
Ví dụ bạn đang làm việc với nhiều project, mà mỗi project thì lại đang chạy ổn định trên một phiên bản Node.js khác nhau. Project A đang làm chạy ổn định trên Node.js 8, Project B lại đang chạy ổn định trên Node.js 12.
Bạn không thể nào cứ mỗi lần làm project này thì lại phải cài phiên bản Node.js này, làm qua project kia thì cài phiên bản khác. Bạn cũng không thể ép chung tất cả các project cùng lên một phiên bản.
Vì vậy, NVM là câu trả lời cho vấn đề này.
Update your browser to view this website correctly. Update my browser now