* how-to "backup" a repository
@ 2006-11-06 5:46 Wink Saville
2006-11-06 5:52 ` Shawn Pearce
0 siblings, 1 reply; 5+ messages in thread
From: Wink Saville @ 2006-11-06 5:46 UTC (permalink / raw)
To: git
Hello,
I've been working with git for a little while, but still very
much a neophyte. One thing I'd like to do is be able to backup
my work on a server located on my network.
Currently I have cloned the Linux 2.6 tree on my personal computer
and have been backing it up by tar'ing the subdirectory with the
cloned repository and then using scp to copy it to my server.
I suspect there is a better way, probably using git itself:)
How is the typically handled?
Cheers,
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: how-to "backup" a repository
2006-11-06 5:46 how-to "backup" a repository Wink Saville
@ 2006-11-06 5:52 ` Shawn Pearce
2006-11-06 6:13 ` Wink Saville
0 siblings, 1 reply; 5+ messages in thread
From: Shawn Pearce @ 2006-11-06 5:52 UTC (permalink / raw)
To: Wink Saville; +Cc: git
Wink Saville <wink@saville.com> wrote:
> I've been working with git for a little while, but still very
> much a neophyte. One thing I'd like to do is be able to backup
> my work on a server located on my network.
>
> Currently I have cloned the Linux 2.6 tree on my personal computer
> and have been backing it up by tar'ing the subdirectory with the
> cloned repository and then using scp to copy it to my server.
>
> I suspect there is a better way, probably using git itself:)
>
> How is the typically handled?
Create a remote (in .git/remotes) which refers to your backup
location. Then use 'git push' to push your branch(es) of
interest to the backup.
--
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: how-to "backup" a repository
2006-11-06 5:52 ` Shawn Pearce
@ 2006-11-06 6:13 ` Wink Saville
2006-11-06 6:18 ` Shawn Pearce
2006-11-06 6:21 ` Junio C Hamano
0 siblings, 2 replies; 5+ messages in thread
From: Wink Saville @ 2006-11-06 6:13 UTC (permalink / raw)
To: Shawn Pearce; +Cc: git
Shawn Pearce wrote:
> Wink Saville <wink@saville.com> wrote:
>> I've been working with git for a little while, but still very
>> much a neophyte. One thing I'd like to do is be able to backup
>> my work on a server located on my network.
>>
>> Currently I have cloned the Linux 2.6 tree on my personal computer
>> and have been backing it up by tar'ing the subdirectory with the
>> cloned repository and then using scp to copy it to my server.
>>
>> I suspect there is a better way, probably using git itself:)
>>
>> How is the typically handled?
>
> Create a remote (in .git/remotes) which refers to your backup
> location. Then use 'git push' to push your branch(es) of
> interest to the backup.
>
Shawn,
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?
Also, how do I setup git on my server so that it becomes a server?
Sorry for are naive questions, but looking at my git tree and
the Internet didn't turn up any obvious answers. Hopefully you can
point to the appropriate documents.
Thanks,
Wink
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: how-to "backup" a repository
2006-11-06 6:13 ` Wink Saville
@ 2006-11-06 6:18 ` Shawn Pearce
2006-11-06 6:21 ` Junio C Hamano
1 sibling, 0 replies; 5+ messages in thread
From: Shawn Pearce @ 2006-11-06 6:18 UTC (permalink / raw)
To: Wink Saville; +Cc: git
Wink Saville <wink@saville.com> wrote:
> 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.
--
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: how-to "backup" a repository
2006-11-06 6:13 ` Wink Saville
2006-11-06 6:18 ` Shawn Pearce
@ 2006-11-06 6:21 ` Junio C Hamano
1 sibling, 0 replies; 5+ messages in thread
From: Junio C Hamano @ 2006-11-06 6:21 UTC (permalink / raw)
To: Wink Saville; +Cc: git, Shawn Pearce
Wink Saville <wink@saville.com> writes:
> 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?
man git-push -- where else ;-)?
http://www.kernel.org/pub/software/scm/git/docs/git-push.html
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2006-11-06 6:21 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-11-06 5:46 how-to "backup" a repository Wink Saville
2006-11-06 5:52 ` Shawn Pearce
2006-11-06 6:13 ` Wink Saville
2006-11-06 6:18 ` Shawn Pearce
2006-11-06 6:21 ` Junio C Hamano
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.