-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.gitignore
91 lines (81 loc) · 3.02 KB
/
.gitignore
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
# ============================================================
# .gitignore File Guide
# ============================================================
# The .gitignore file allows you to specify files and folders
# that Git should ignore. This prevents them from being
# tracked or synced with GitHub.
#
# Below are examples and instructions for using .gitignore:
# ============================================================
# ------------------------------------------------------------
# 1. Exclude Specific Files
# ------------------------------------------------------------
# To ignore specific files, list their names directly:
# debug.log
# temp.txt
# ------------------------------------------------------------
# 2. Exclude Files by Type
# ------------------------------------------------------------
# To ignore all files of a certain type, use a wildcard:
# *.log
# *.tmp
*.GPT
*.SELECTIVE
*.log
# ------------------------------------------------------------
# 3. Exclude Entire Folders
# ------------------------------------------------------------
# To ignore an entire folder, add the folder name followed by a `/`:
# logs/
# build/
# node_modules/
.venv/
.vscode/
combined_charts/
csv/
database/
heatmaps/
indicator_charts/
reports/
__pycache__/
# ------------------------------------------------------------
# 4. Exclude Subdirectories
# ------------------------------------------------------------
# To ignore files in subdirectories, use double asterisks:
# **/*.tmp
# ------------------------------------------------------------
# 5. Exclude a Folder but Include a Subfolder
# ------------------------------------------------------------
# To ignore a folder but include a specific subfolder, use `!`:
# assets/*
# !assets/icons/
# ------------------------------------------------------------
# 6. Untrack Files Already Committed
# ------------------------------------------------------------
# If files are already tracked, untrack them before adding to .gitignore:
# Run the following command:
# git rm --cached <file_or_folder>
# Example: git rm -r --cached logs/
# ------------------------------------------------------------
# 7. Local Exclusions (Optional)
# ------------------------------------------------------------
# To exclude files only for your local repository, add rules to:
# .git/info/exclude
# ------------------------------------------------------------
# 8. Global Exclusions (Optional)
# ------------------------------------------------------------
# To set global ignore rules for all repositories:
# 1. Create a global .gitignore file (e.g., ~/.gitignore)
# 2. Add patterns to this file
# 3. Configure Git to use this file:
# git config --global core.excludesFile ~/.gitignore
# ------------------------------------------------------------
# 9. Testing .gitignore Rules
# ------------------------------------------------------------
# To verify your rules, use:
# git status
# ============================================================
# End of .gitignore Guide
# ============================================================
*.log
/venv