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

Update a bare repository

From
TGThomas Glanzmann <thomas@glanzmann.de>
Date
Jul 17, 2007, 06:30 UTC
Message-ID
<20070717063026.GA5823@cip.informatik.uni-erlangen.de>

Hello, what I would like to do is the following:

I have a _bare_ clone of a git repository and would like to update it from Junios repository at kernel.org from time to time.

How do I do that? In a way that it is a fire and forget solution? It should also fetch new upstream branches.

"git pull" does not work. "git fetch" does, but it does update all references?

	(faui02) [~/work/repositories/mirror/git.git] git pull
	fatal: /usr/bin/git-pull cannot be used without a working tree.
	(faui02) [~/work/repositories/mirror/git.git] git fetch
	(faui02) [~/work/repositories/mirror/git.git]

I also would like to check that it is impossible to push anything to the repository.

		Thomas
Next: Jeff King
Message 1 of 5 in “Update a bare repository”
  1. Thomas GlanzmannJul 17, 2007
  2. Jeff KingJul 17, 2007
  3. Thomas GlanzmannJul 17, 2007
  4. Jeff KingJul 17, 2007
  5. Thomas GlanzmannJul 17, 2007

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.