开发者

Git Gui showing 8000 files from AppData

开发者 https://www.devze.com 2023-04-12 09:25 出处:网络
Git Gui is showing over 8000 files f开发者_如何学Crom the .gem and AppData directories which is preventing me from seeing my actual repository.

Git Gui is showing over 8000 files f开发者_如何学Crom the .gem and AppData directories which is preventing me from seeing my actual repository.

How can I prevent git from seeing these files?


Use the .gitignore file. Place a file named .gitignore in the root of your checked out repository that includes the names of the files you want ignored. Wildcards are ok. Putting in a directory name will ignore everything in that directory.

Here's an example from GitHub.

In your case you'd want a file named .gitignore with the following:

.gem
AppData


Make a .gitignore file and insert patterns for all files you want to exclude there,

.gem
AppData

should do the trick

0

精彩评论

暂无评论...
验证码 换一张
取 消