最后活跃于 1715189857

kristofer's Avatar kristofer 修订了这个 Gist 1715189856. 跳至此修订

1 file changed, 19 insertions

note.md(file created)

@@ -0,0 +1,19 @@
1 + ### For re-doing the repo, to take into account your changes to the `.gitignore`
2 +
3 + Remove Stuff that should ignored.
4 +
5 + The series of commands below will remove all of the items from the Git Index (not from the working directory or local repo), and then updates the Git Index, while respecting git ignores. PS. Index = Cache
6 +
7 + First:
8 +
9 + ```
10 + git rm -r --cached .
11 + git add .
12 + ```
13 +
14 +
15 + Then:
16 + ```
17 + git commit -m "Remove ignored files"
18 + ```
19 +
更新 更早