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

Re: keeping remote repo checked out?

From
Petr Baudis <pasky@suse.cz>
Date
Nov 28, 2005, 10:57 UTC
Message-ID
<20051128105736.GO22159@pasky.or.cz>
In-Reply-To
<7vbr051ad1.fsf@assigned-by-dhcp.cox.net>

Dear diary, on Mon, Nov 28, 2005 at 08:48:26AM CET, I got a letter where Junio C Hamano <junkio@cox.net> said that...

Show 10 quoted lines
> James Cloos <cloos@jhcloos.com> writes:
> 
> > Is it possible to arrange that a push does a checkout on the remote
> > the same way a pull does on the local?
> 
> Creative use of hooks/post-update would solve that.
> 
> However, you should be very careful if you sometimes edit on
> server and sometimes push from other machine to the server on
> the same branch on the server.

Why? At worst you will get files with conflict markers on the server, which isn't that huge problem and just what you have to expect when you do this kind of thing. I could imagine having an option in the config file describing whether the repository is "raw" or has the working copy associated, and in the later case have the updating code in the default post-update hook.

PS: If someone is bored, it would be very useful to have a manual page
for the git configuration file, containing the list of all options.
-- 
				Petr "Pasky" Baudis
Stuff: http://pasky.or.cz/
VI has two modes: the one in which it beeps and the one in which
it doesn't.
Previous: Junio C HamanoNext: Junio C Hamano
Message 3 of 25 in “keeping remote repo checked out?”
  1. James CloosNov 28, 2005
  2. Junio C HamanoNov 28, 2005
  3. Petr BaudisNov 28, 2005
  4. Junio C HamanoNov 28, 2005
  5. Petr BaudisNov 28, 2005
  6. Junio C HamanoNov 28, 2005
  7. Linus TorvaldsNov 28, 2005
  8. Daniel BarkalowNov 29, 2005
  9. Linus TorvaldsNov 29, 2005
  10. Daniel BarkalowNov 29, 2005
  11. Linus TorvaldsNov 29, 2005
  12. Re: keeping remote repo checked out?Daniel Barkalow, Nov 29, 2005
  13. Linus TorvaldsNov 29, 2005
  14. Daniel BarkalowNov 29, 2005
  15. Junio C HamanoNov 29, 2005
  16. Daniel BarkalowNov 29, 2005
  17. Junio C HamanoNov 29, 2005
  18. Matthias UrlichsNov 29, 2005
  19. Junio C HamanoNov 29, 2005
  20. Daniel BarkalowNov 29, 2005
  21. Junio C HamanoNov 29, 2005
  22. Daniel BarkalowNov 29, 2005
  23. Matthias UrlichsNov 29, 2005
  24. James CloosDec 1, 2005
  25. Junio C HamanoDec 1, 2005

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.