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

Re: how-to "backup" a repository

From
Shawn Pearce <spearce@spearce.org>
Date
Nov 6, 2006, 06:18 UTC
Message-ID
<20061106061846.GB23126@spearce.org>
In-Reply-To
<454ED27F.8060106@saville.com>
Wink Saville <wink@saville.com> wrote:
Show 7 quoted lines
> This sounds easy enough, but how-to "create a remote"?
> I looked in .git/remotes and see origin which contains:
> 
> URL: git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux-2.6.git
> Pull: refs/heads/master:refs/heads/origin
> 
> But where is the syntax defined?
See http://www.kernel.org/pub/software/scm/git/docs/git-push.html#URLS
 
> Also, how do I setup git on my server so that it becomes a server?

So long as you can ssh to it and Git is installed in your PATH then there's nothing else to do; Git will login via SSH and execute Git on the remote side to run the server.

Previous: Wink SavilleNext: Junio C Hamano
Message 4 of 5 in “how-to "backup" a repository”
  1. Wink SavilleNov 6, 2006
  2. Shawn PearceNov 6, 2006
  3. Wink SavilleNov 6, 2006
  4. Shawn PearceNov 6, 2006
  5. Junio C HamanoNov 6, 2006

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.