Re: Conceptual Question for git usage ...

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

 



On Jan 22, 2014, at 9:20 AM, John McIntyre <joh98.mac@xxxxxxxxx> wrote:

>
> 
> So basically, what I'd like to do is this.  I want to write code,
> write blg posts, write essays for university, whatever.  And I want to
> use git to maintain revisions, but where do I store them?  Do I make
> the Mac my hub?  I have a git client on there.  Do I make the server
> my 'hub'?  If I make the server the 'hub', then won't rsync back-ups
> from the Mac to the server wipe them out?
> 
>

Git's degree of flexibility in what is considered "the server" is valuable here.  I advise that you simply try a configuration, and see how it works.  It's easy to change where origin points later.

With that said, like you, I have a small ad-hoc setup of automated rsync backups between my various computers and servers, and I have found some characteristics useful:

* I have rsync saving backups into dedicated backup folders on the remote machines.  This eliminates ambiguity of what to back up (server A won't blow away server B's Documents folder, for example).

* Using a publicly accessible server has been useful.  I set up port forwarding to the machine, and set up a domain name pointing to the server.  In general, when I have Internet access, I can access the server that contains my repositories.  I always use the same domain name, even if I'm in the same room as the server.

Hope that helps,
Andrew

--
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]