Re: how-to "backup" a repository

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Wink Saville <wink@xxxxxxxxxxx> 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.
-
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux Kernel Development]     [Gcc Help]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [V4L]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]     [Fedora Users]