0
0
0ralo2019-07-24 16:11:06
git
0ralo, 2019-07-24 16:11:06

Why doesn't .gitignore work?

Why doesn't .gitignore work? -Added *json
exceptions in the file admin_list.json users_data.json But with git pull the changes are still downloaded. I would like not to touch these files, and update the rest (.py)
5d3858a41b53a606835366.png

Answer the question

In order to leave comments, you need to log in

2 answer(s)
D
Decadal, 2019-07-24
@0ralo

gitignore works a little differently. It specifies files that you would like to change locally, but would not want to upload to git.
And if something has changed in the git, you must get it to yourself with git pull

R
Radjah, 2019-07-24
@Radjah

https://git-scm.com/docs/gitignore
> A gitignore file specifies intentionally untracked files that Git should ignore. Files already tracked by Git are not affected

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question