-
Notifications
You must be signed in to change notification settings - Fork 36.8k
Description
Type: Feature Request
The Github copilot is making a lot of mistakes. It intentionally try to fix things but messing up the rest of the project code. Making a really bad cycle for fixing the same things ove and over again. And it is making pushing request of my code to my repository in Github in an unprofessional way. Look at this code he was trying to push.
cd /Users/liyidun/DevProjects/dance-cms/client
npm run build
cd ..
git add client/src/components/Sidebar.jsx client/build
git commit -m "Fix: Memoize sidebar to prevent flickering on navigation
- Added useMemo for role calculations
- Wrapped SidebarItem in React.memo
- Prevents unnecessary re-renders during navigation"
git push origin main
The primary issue is with this line: git add client/src/components/Sidebar.jsx client/build
Why this is likely wrong:
client/src/components/Sidebar.jsx is a source code file. Since you just ran npm run build, this file's changes should be staged. This is fine.
client/build is the directory where the output of the build process (the minified HTML, CSS, and JavaScript files) is placed.
In almost all React/frontend projects, the client/build (or dist) directory is automatically added to the project's .gitignore file.
The purpose of .gitignore is to prevent large, generated files (like the build output) from being committed to the Git repository.
If client/build is in .gitignore, the git add client/build command will fail to stage the files, but Git will not necessarily throw an error, so the commit will proceed without the actual deployed application files.
VS Code version: Code 1.107.0 (618725e, 2025-12-10T07:43:47.883Z)
OS version: Darwin arm64 25.1.0
Modes: