📁 Files
secrets.envS
src/app.jsS
! ConflictS StagedM ModifiedU Untracked
+src/app.js+ console.log('app')
+secrets.env+ API_KEY=supersecret123
📊 Commit Graphcurrent branchmain
git add . and accidentally staged secrets.env along with your real changes.
The file contains API keys — it must NOT be committed. Remove it from the staging area but keep it on disk.Solve the problem by using the correct Git commands.