From the course: GitHub Copilot Cert Prep by Microsoft Press
Unlock this course with a free trial
Join today to access over 25,500 courses taught by industry experts.
Exclude specific files from GitHub Copilot suggestions - Github Copilot Tutorial
From the course: GitHub Copilot Cert Prep by Microsoft Press
Exclude specific files from GitHub Copilot suggestions
- [Instructor] Right. Well, as a developer you almost certainly use Git for version control, and you know about Git Ignore, where you can have Git tracking ignore sensitive files. For example, build artifacts that you don't need to transmit, and so on. Well, similarly, GitHub Copilot allows us to configure rules for having the AI exclude specific files or directories in our workspace from its suggestion set. And the reason for this is simple, privacy, avoid suggesting sensitive code. We do this specifically by adding .copilotignore file to the root of your repository, and then specifying your patterns. Again, the idea here is that we're preventing the AI from using noisy or irrelevant files in its suggestion context. Here we can see an ignore array. And this is all, I'm not going to say junk, but it's stuff that were certainly secrets and end, we would never put up into source control and GitHub anyway. You see what I'm saying? That's all this exam object is about. It's a really…
Contents
-
-
-
-
-
(Locked)
Learning objectives33s
-
(Locked)
Exclude specific files from GitHub Copilot suggestions1m 13s
-
(Locked)
Establish organization-wide policy management for AI usage1m 24s
-
(Locked)
Learn the purpose and use of organization audit logs to monitor GitHub Copilot activity1m 24s
-
(Locked)
Manage GitHub Copilot Business subscriptions via the REST API21m 16s
-
(Locked)
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-