Skip to content

πŸ™Œ OpenHands: AI-Driven Development

fix: merge multiple .gitignore to unify management (#61)

Binyuan Huia94f3d81cbeb
diff --git a/.gitignore b/.gitignore
index 44bbb13b47..5e212b2531 100644
--- a/.gitignore
+++ b/.gitignore
@@ -159,3 +159,32 @@ cython_debug/
# option (not recommended) you can uncomment the following to ignore the entire idea folder.
.idea/
.vscode/
+
+# frontend
+
+# dependencies
+frontend/node_modules
+frontend/.pnp
+.pnp.js
+
+# testing
+frontend/coverage
+
+# production
+frontend/build
+frontend/dist
+
+# misc
+.DS_Store
+.env.local
+.env.development.local
+.env.test.local
+.env.production.local
+
+npm-debug.log*
+yarn-debug.log*
+yarn-error.log*
+
+# agent
+.envrc
+agent/workspace
diff --git a/agent/.gitignore b/agent/.gitignore
deleted file mode 100644
index 205bd12e7f..0000000000
--- a/agent/.gitignore
+++ /dev/null
@@ -1,3 +0,0 @@
-.envrc
-__pycache__
-./workspace
diff --git a/frontend/.gitignore b/frontend/.gitignore
deleted file mode 100644
index 800f3a80c3..0000000000
--- a/frontend/.gitignore
+++ /dev/null
@@ -1,24 +0,0 @@
-# See https://help.github.com/articles/ignoring-files/ for more about ignoring files.
-
-# dependencies
-/node_modules
-/.pnp
-.pnp.js
-
-# testing
-/coverage
-
-# production
-/build
-/dist
-
-# misc
-.DS_Store
-.env.local
-.env.development.local
-.env.test.local
-.env.production.local
-
-npm-debug.log*
-yarn-debug.log*
-yarn-error.log*
diff --git a/server/.gitignore b/server/.gitignore
deleted file mode 100644
index bee8a64b79..0000000000
--- a/server/.gitignore
+++ /dev/null
@@ -1 +0,0 @@
-__pycache__