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

RE: How do you undo an add

From
rsbecker@nexbridge.com <rsbecker@nexbridge.com>
Date
Nov 19, 2024, 21:31 UTC
Message-ID
<028e01db3aca$75de0150$619a03f0$@nexbridge.com>
In-Reply-To
<6arLzsCWhxM8QTlPRbNStMLfz5ZqVJTTUSX1E1NXLiy_n_d0v0wFMiUK5brfkqTV3chUOp9OLYyBpIbe4tYQ6qvrLKDzfg5el0EWnqDIYDM=@proton.me>
On November 19, 2024 3:59 PM, A bughunter wrote:
Show 17 quoted lines
>On Tuesday, November 19th, 2024 at 02:13, Kristoffer Haugsbakk
><kristofferhaugsbakk@fastmail.com> wrote:
>> On Tue, Nov 19, 2024, at 00:20, rsbecker@nexbridge.com wrote:
>> > On November 18, 2024 5:10 PM, A bughunter wrote:
>> > > ADD, ADD, ADD why cant they get that: ADD. ADD tracks files for
>> > > commit. It's already been commit : push failed. Failed pushes piled up. I need
>them untracked.
>> > > How do you undo an add ( many adds): simple question. Without
>> > > deleting any files, to repush 1 by 1.
>> >
>> > Once you have pushed an added file, your only option is
>> > filter-branch to prune out the invalid content.
>>
>> git-filter-branch? Why not `git reset --hard` with `push --force-with-lease --force-
>if-includes`? Maybe I’m missing something.
>Yes you are missing something "Without deleting any files," a bunch of irrelivent
>and wrong answers is SPAM because literacy is necessity for participating in any ML.

filter-branch can be used to edit your repository if you accidentally added files post-commit. That is why I included it in my original reply - you are free to read the fine manuals that this team produces for more information on that and the reset commands.

Our answers are provided as a courtesy. We are all volunteers, and I would ask that you consider the possibility of treating the people who have spent time in an attempt to answer your questions with a modicum of the same. Thank you.

Previous: A bughunterNext: Konstantin Ryabitsev
Message 7 of 11 in “How do you undo an add”
  1. A bughunterNov 17, 2024
  2. A bughunterNov 18, 2024
  3. rsbecker@nexbridge.comNov 18, 2024
  4. Kristoffer HaugsbakkNov 19, 2024
  5. A bughunterNov 19, 2024
  6. A bughunterNov 19, 2024
  7. rsbecker@nexbridge.comNov 19, 2024
  8. Konstantin RyabitsevNov 20, 2024
  9. A bughunterNov 20, 2024
  10. A bughunterDec 5, 2024
  11. A bughunterNov 19, 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.