Git development
 help / color / mirror / Atom feed
From: <rsbecker@nexbridge.com>
To: "'A bughunter'" <A_bughunter@proton.me>
Cc: <git@vger.kernel.org>,
	"'Kristoffer Haugsbakk'" <kristofferhaugsbakk@fastmail.com>
Subject: RE: How do you undo an add
Date: Tue, 19 Nov 2024 16:31:51 -0500	[thread overview]
Message-ID: <028e01db3aca$75de0150$619a03f0$@nexbridge.com> (raw)
In-Reply-To: <6arLzsCWhxM8QTlPRbNStMLfz5ZqVJTTUSX1E1NXLiy_n_d0v0wFMiUK5brfkqTV3chUOp9OLYyBpIbe4tYQ6qvrLKDzfg5el0EWnqDIYDM=@proton.me>

On November 19, 2024 3:59 PM, A bughunter wrote:
>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.



  reply	other threads:[~2024-11-19 21:32 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-11-17 11:24 How do you undo an add A bughunter
2024-11-18 22:09 ` A bughunter
2024-11-18 23:20   ` rsbecker
2024-11-19  8:13     ` Kristoffer Haugsbakk
     [not found]       ` <89DnJJL6nbYjQW9N8CtejlqbnzPDiH7iKd-3zKFY8oQezk1rRYbjH5WkKdrVPYPQQsKPhMpd3IcBet7ZBD4U3HSSoXk6rVXIMWPaG4hAj1g=@proton.me>
2024-11-19 20:49         ` A bughunter
2024-11-19 19:54     ` A bughunter
2024-11-19 20:58     ` A bughunter
2024-11-19 21:31       ` rsbecker [this message]
2024-11-20  0:02       ` Konstantin Ryabitsev
2024-11-20 20:01 ` A bughunter
2024-12-05 21:03   ` A bughunter

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='028e01db3aca$75de0150$619a03f0$@nexbridge.com' \
    --to=rsbecker@nexbridge.com \
    --cc=A_bughunter@proton.me \
    --cc=git@vger.kernel.org \
    --cc=kristofferhaugsbakk@fastmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox