Skip to content

Commit d67cade

Browse files
committed
updating note on git cache clearing
1 parent 3ac56db commit d67cade

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

Git-and-Github/clear-a-git-repository-s-cache.md

+5-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,8 @@
1-
If you have performed a task, such as adding a new line item to your .gitignore file, you may need to clear out your git repo's cache in order for the changes to take place. Here are the commands for doing that:
1+
### After changing something in .gitignore or sometime if you think that local .git folder has been messed up we MUST clear cache - Note updated on 19-May-2021
2+
3+
https://stackoverflow.com/a/48703146/1902852
4+
5+
If you have performed a task, such as adding a new line item to your .gitignore file, I MUST need to clear out your git repo's cache in order for the changes to take place. Here are the commands for doing that:
26

37
```
48
git rm -r --cached .

0 commit comments

Comments
 (0)