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

Re: pushing branches

From
Matthieu Moy <matthieu.moy@grenoble-inp.fr>
Date
Jul 20, 2012, 15:53 UTC
Message-ID
<vpqzk6uo2dc.fsf@bauges.imag.fr>
In-Reply-To
<CACnwZYdqP_ptj0++dj5NkCoKWKHiLEj+c0t7zrmNidkHsyzMgw@mail.gmail.com>
Thiago Farina <tfransosi@gmail.com> writes:
> $ git push origin master # here I expected it would working pushing my
> commits to a feature-work branch in github. Or if I omit master it
> gives me a [rejected] error.
> Everything up-to-date.

If your workflow is to push one branch at a time, and you have the same naming locally and remotely (i.e. your local branch feature-work should be pushed as feature-work on github), then you probably want to set the variable 'push.default' to either 'current', 'upstream' or 'simple' if you use the last version of Git. Read about it there:

  http://git-scm.com/docs/git-config
(search push.default)
-- 
Matthieu Moy
http://www-verimag.imag.fr/~moy/
Previous: Konstantin Khomoutov
Message 13 of 13 in “pushing branches”
  1. Thiago FarinaJul 20, 2012
  2. Junio C HamanoJul 20, 2012
  3. Thiago FarinaJul 20, 2012
  4. PJ WeisbergJul 20, 2012
  5. Thiago FarinaJul 21, 2012
  6. PJ WeisbergJul 21, 2012
  7. Thiago FarinaJul 21, 2012
  8. Junio C HamanoJul 21, 2012
  9. Thiago FarinaJul 22, 2012
  10. Junio C HamanoJul 22, 2012
  11. PJ WeisbergJul 20, 2012
  12. Konstantin KhomoutovJul 20, 2012
  13. Matthieu MoyJul 20, 2012

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.