git/list[1] front-page[2] threads[3] people[4] search[5] about
 

having issue with git commands. Probably a bug

From
NNick <billingidentity@gmail.com>
Date
Mar 12, 2024, 21:36 UTC
Message-ID
<CA+cJT-HV=GH84p1nQaoywnJABDWDK9PS-StzW8BTEBezHuvocg@mail.gmail.com>
Hi Git Team,

I am having the following issue: My repository has all these files but my terminal shows that they are deleted. My repo is in Amazon Web Services.

My terminal show the following:
Changes to be committed:
  (use "git restore --staged <file>..." to unstage)
        deleted:    Page2 csv file.csv
        deleted:    Page3 and Page4 csv file.csv
        deleted:    dummy demo.mp4
        deleted:    page1 csv file.csv
        deleted:    page5 csv file.csv
        deleted:    page6 csv file.csv

I have been trying to delete these files from my terminal and from my repository but git commands are not working.

Git commands:

#git commit -m "try to delete csv files and dummy demo" error: invalid object 100644 d54132721804e177f865b31a807d9fbebc7ff7 for 'page1 csv ps.csv' error: invalid object 100644 d54132721804e177f865b31a807d9fbebc7ff7 for 'page1 csv ps.csv' error: Error building trees

#git log -- page1\ csv\ ps.csv
commit c302c5202fc374739c0275b2e507a957be45e6
Date:   Wed Feb 14 22:03:46 2024 +0000
    Added page1 csv ps.csv
error: Could not read 32286e5dfdb73b4cfa9eb87abf140dc81e68ab
fatal: cannot simplify commit aee35d8a1bcde08c2249df029b06d46537751f
(because of 32286e5dfdb73b4cfa9eb87abf140dc81e68ab)
#git push
Everything up-to-date
# git status
On branch BranchName
Your branch is up to date with 'origin/BranchName'.
Changes to be committed:
  (use "git restore --staged <file>..." to unstage)
        deleted:    Page2 csv file.csv
        deleted:    Page3 and Page4 csv file.csv
        deleted:    dummy demo.mp4
        deleted:    page1 csv file.csv
        deleted:    page5 csv file.csv
        deleted:    page6 csv file.csv

Please could you guide me? I appreciate! Thanks

Next: brian m. carlson
Message 1 of 2 in “having issue with git commands. Probably a bug”
  1. NickMar 12, 2024
  2. brian m. carlsonMar 13, 2024

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.