Git - Creating a .gitignore file

后端 未结 4 1312
闹比i
闹比i 2020-11-30 03:31

I\'m looking to create a .gitignore file so certain files are do not get checked in to the repository. Does anyone have a guide on how and where to place this f

4条回答
  •  长情又很酷
    2020-11-30 03:45

    From the link @thescientist has posted:

    Git lets you ignore those files by assuming they are unchanged. This is done by running the

    git update-index --assume-unchanged path/to/file.txt

    command. Once marking a file as such, git will completely ignore any changes on that file; they will not show up when running git status or git diff, nor will they ever be committed.

提交回复
热议问题