{"thread":{"id":"26990","subject":"New To GIT have some (probably simple) newbie questions","startedAt":"2011-04-04T22:13:32Z","lastAt":"2011-04-04T22:13:32Z","messageCount":1,"participants":["Ryan Bilesky"],"isPatch":false,"patchVersion":null,"patchTotal":null},"messages":[{"id":"165140","messageId":"BANLkTim=G0obXv9LjoT7nW9C=wpmJ=RAVQ@mail.gmail.com","threadId":"26990","inReplyTo":null,"subject":"New To GIT have some (probably simple) newbie questions","fromName":"Ryan Bilesky","fromEmail":"rbilesky@gmail.com","sentAt":"2011-04-04T22:13:32Z","receivedAt":"2011-04-04T22:13:32Z","isPatch":false,"sender":{"key":"rbilesky@gmail.com","avatar":null},"body":"Sorry if these questions seem simple but I am new to GIT, I've done\nsome searching about how it works but I still have some questions that\nI hope someone on this list would be kind enough to answer.  I am\nusing msysgit on Windows 7.\n\nFor some of my projects I have to comit changes to SVN.  So I did some\nresearch and found out how to use git-svn so I start by right clicking\non the directory I want to store my repository in, and I select Git\nBash Here.  I enter in the comand\n\ngit-svn clone -s --username=myusername https://mysvnrepo/svn git\n\nand that works and it creates a local git repository that is cloned\nfrom the svn repo, then if I\n\ngit-svn dcommit\n\nthat keeps then synced up, but there is my first issue, manually\nsyncing, so I look at git hooks, so if I create a file called\npost-commit in the hooks directory of my local git repo with the\nfollowing content\n\n#!/bin/sh\ngit-svn dcommit\n\nthat should work to automatically sync my local git repo and the\nremote svn repo upon me committing to git right?\n\nWhat I have no clue how to do though it to get this to work with\nanother git repo, I mean I can use the gui to clone a git repo, but\nhow do I sync them up.  The reason being is I use a git hosting\nservice where I want to mirror all my commit to, just as a backup\nmostly.\n\nHow can I sync up my local git repo with the remote hosted repo AND\nwhere necessary svn using svn-git?\n\nMy final question is a matter of work flow.  I have a local it repos\non my machine using msysgit, as well as hosted git repos with an\nonline service.  Since I am a single developer its easy to just sync\nmy commits back to the remote repo for each project I have.  But if I\ndo get another developer or two to help me how does that work, do we\nall just sync to the one hosted repo or should we all sync with\nanother too?  And if so how do I sync with multiple git repos.\n\nThanks in advance for your help.\n"}]}