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

Re: How to ignore changes on remote

From
Alexander Iljin <ajsoft@yandex.ru>
Date
Mar 23, 2010, 14:21 UTC
Message-ID
<465338777.20100323202112@yandex.ru>
In-Reply-To
<26ae428a1003230713y12f0c74dh3b22c0d97565159b@mail.gmail.com>
Hello!
>>
>> git push origin +local_branch:remote_branch
>>

HM> Tell me more about that '+'. I've never heard of it before. Can't see HM> anything in the docs (although I'm probably not looking in the right HM> place)

  git help push
<refspec>…
  The format of a <refspec> parameter is an optional plus +, followed
  by the source ref <src>, followed by a colon :, followed by the
  destination ref <dst>. It is used to specify with what <src> object
  the <dst> ref in the remote repository is to be updated.
  ...
  By having the optional leading +, you can tell git to update the
  <dst> ref even when the update is not a fast forward. This does not
  attempt to merge <src> into <dst>. See EXAMPLES below for details.
---=====---
 Alexander
Previous: Howard MillerNext: Santi Béjar
Message 4 of 14 in “How to ignore changes on remote”
  1. Howard MillerMar 23, 2010
  2. Sylvain RabotMar 23, 2010
  3. Howard MillerMar 23, 2010
  4. Alexander IljinMar 23, 2010
  5. Santi BéjarMar 23, 2010
  6. Howard MillerMar 23, 2010
  7. Sylvain RabotMar 23, 2010
  8. Scott ChaconMar 23, 2010
  9. Howard MillerMar 23, 2010
  10. Johannes SixtMar 23, 2010
  11. Johan HerlandMar 23, 2010
  12. Jakub NarebskiMar 23, 2010
  13. Johan HerlandMar 23, 2010
  14. Junio C HamanoMar 23, 2010

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.