Skip to content

Commit da71212

Browse files
authored
Add a .geminiignore file (#1224)
Tell Gemini CLI what it should or should not ignore. Takes precedence over `.gitignore` (which Gemini CLI also reads). This PR adds only one pattern for now: a pattern that Gemini CLI does not seem to handle correctly based on `.gitignore` alone.
1 parent e5ea36b commit da71212

File tree

1 file changed

+22
-0
lines changed

1 file changed

+22
-0
lines changed

.geminiignore

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
# Copyright 2026 Google LLC
2+
#
3+
# Licensed under the Apache License, Version 2.0 (the "License");
4+
# you may not use this file except in compliance with the License.
5+
# You may obtain a copy of the License at
6+
#
7+
# https://www.apache.org/licenses/LICENSE-2.0
8+
#
9+
# Unless required by applicable law or agreed to in writing, software
10+
# distributed under the License is distributed on an "AS IS" BASIS,
11+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12+
# See the License for the specific language governing permissions and
13+
# limitations under the License.
14+
15+
# Summary: tell Gemini CLI what it should or should not ignore. Takes precedence
16+
# over .gitignore (which Gemini CLI also reads), thus can be used to un-ignore
17+
# files that shouldn't be committed to git yet should be visible to Gemini. Also
18+
# used to ignore things usually in people's global .gitignore files.
19+
20+
# The next one (for Emacs versioned backups) _should_ be covered by *~ in our
21+
# .gitignore, but Gemini currently doesn't seem to interpret *~ that way.
22+
*.~*~

0 commit comments

Comments
 (0)