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

Re: Why is there no force pull?

From
CBChristoph Böhmwalder <christoph@boehmwalder.at>
Date
Jun 9, 2018, 20:25 UTC
Message-ID
<20180609202553.dvoirez5mi2r4ctk@christoph-lap>
In-Reply-To
<CABPp-BG9HQ4O8h7-b4oL7KLu+boe6-QV1fvcfW_4O3Rax3W_Hw@mail.gmail.com>
On Sat, Jun 09, 2018 at 01:04:30PM -0700, Elijah Newren wrote:
Show 10 quoted lines
> Upon reading the subject and before reading the body, I assumed you
> were going to ask for a 'git pull --force' that would throw away
> *uncommitted* changes (i.e. do a 'git reset --hard HEAD' before the
> rest of the pull).  But then you asked for both uncommitted and
> committed changes to be thrown away.  That difference isn't something
> you have to consider with a push.
> 
> That might be a reason such an option would be confusing, or it might
> just be a warning to document the option carefully.  Anyway, thought
> I'd mention it.

Interesting, I hadn't taken that first scenario into consideration at all. So I guess two very aptly named flags would be necessary to implement this kind of feature...

-- Regards, Christoph

Previous: Elijah NewrenNext: Ævar Arnfjörð Bjarmason
Message 3 of 5 in “Why is there no force pull?”
  1. Christoph BöhmwalderJun 9, 2018
  2. Elijah NewrenJun 9, 2018
  3. Christoph BöhmwalderJun 9, 2018
  4. Ævar Arnfjörð BjarmasonJun 9, 2018
  5. Torsten BögershausenJun 10, 2018

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.