From 67446feb6fa8a2bfcda42955254ce6f9a8c83a23 Mon Sep 17 00:00:00 2001 From: Mathieu CAROFF Date: Sun, 8 Sep 2019 12:39:50 +0200 Subject: [PATCH] Provide instructions to ignore file in README --- README.md | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/README.md b/README.md index 23cc7e5..79a76f0 100644 --- a/README.md +++ b/README.md @@ -282,3 +282,17 @@ gulp dev --coverage # run with tests and code coverage - `src/ts/server/start.ts:35` - adding custom map to the world - `src/ts/server/map/customMap.ts` - commented introduction to customizing maps + +## Have git ignore changes to `sprites.ts`, eventhough it's already in the index + +```bash +git update-index --assume-unchanged src/ts/generated/sprites.ts +``` + +`serve.ts`: + +```bash +git update-index --assume-unchanged src/ts/server/server.ts +``` + +Read more about it [here](https://stackoverflow.com/questions/1139762/ignore-files-that-have-already-been-committed-to-a-git-repository).