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

Re: help with git usage

From
Andreas Ericsson <ae@op5.se>
Date
Apr 30, 2008, 13:09 UTC
Message-ID
<48186F97.6080509@op5.se>
In-Reply-To
<1c5969370804300502obbc5a63v4c2c1a1175084237@mail.gmail.com>
Matt Graham wrote:
Show 23 quoted lines
> On Tue, Apr 29, 2008 at 2:07 PM, Daniel Barkalow <barkalow@iabervon.org> wrote:
>> On Tue, 29 Apr 2008, Daniel Quinlan wrote:
>>
>>  > I've been trying to use git for awhile now, (and I've read a lot of
>>  > documentation, though maybe my
>>  > comprehension has not been high enough) but there are several operations which
>>  > I
>>  > can't figure out:
>>  >
>>  > 1) After cloning a repository from work at home, making some changes and
>>  > committing them,
>>  > I use "git push" to push them back to the work repository.  The changes seem
>>  > to make it to the
>>  > work repository (I see the commit message in git log), but I can't figure out
>>  > how to get the
>>  > changes into the working set at work.  (evidently not merge, checkout or reset
>>  > -- seems like it
>>  > should be merge, but)
>>
>>  You shouldn't push to a non-bare repository.
> 
> Is there any reason it wouldn't be appropriate to make git refuse to
> push to non-bare repositories?

It has several very valid uses. Newcomers who don't know what happens are often better off not doing it, which is why it's not recommended. Making git refuse would prevent the valid uses altogether though.

-- 
Andreas Ericsson                   andreas.ericsson@op5.se
OP5 AB                             www.op5.se
Tel: +46 8-230225                  Fax: +46 8-230231
Previous: Matt GrahamNext: Richard Quirk
Message 9 of 12 in “help with git usage”
  1. Daniel QuinlanApr 29, 2008
  2. Daniel BarkalowApr 29, 2008
  3. Jakub NarebskiApr 30, 2008
  4. Daniel QuinlanMay 7, 2008
  5. Julian PhillipsMay 8, 2008
  6. Dirk SüsserottMay 8, 2008
  7. Jakub NarebskiMay 8, 2008
  8. Matt GrahamApr 30, 2008
  9. Andreas EricssonApr 30, 2008
  10. Richard QuirkApr 30, 2008
  11. Jakub NarebskiApr 30, 2008
  12. Richard QuirkApr 30, 2008

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.