git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Ryan Bilesky <rbilesky@gmail.com>
To: git@vger.kernel.org
Subject: New To GIT have some (probably simple) newbie questions
Date: Mon, 4 Apr 2011 15:13:32 -0700	[thread overview]
Message-ID: <BANLkTim=G0obXv9LjoT7nW9C=wpmJ=RAVQ@mail.gmail.com> (raw)

Sorry if these questions seem simple but I am new to GIT, I've done
some searching about how it works but I still have some questions that
I hope someone on this list would be kind enough to answer.  I am
using msysgit on Windows 7.

For some of my projects I have to comit changes to SVN.  So I did some
research and found out how to use git-svn so I start by right clicking
on the directory I want to store my repository in, and I select Git
Bash Here.  I enter in the comand

git-svn clone -s --username=myusername https://mysvnrepo/svn git

and that works and it creates a local git repository that is cloned
from the svn repo, then if I

git-svn dcommit

that keeps then synced up, but there is my first issue, manually
syncing, so I look at git hooks, so if I create a file called
post-commit in the hooks directory of my local git repo with the
following content

#!/bin/sh
git-svn dcommit

that should work to automatically sync my local git repo and the
remote svn repo upon me committing to git right?

What I have no clue how to do though it to get this to work with
another git repo, I mean I can use the gui to clone a git repo, but
how do I sync them up.  The reason being is I use a git hosting
service where I want to mirror all my commit to, just as a backup
mostly.

How can I sync up my local git repo with the remote hosted repo AND
where necessary svn using svn-git?

My final question is a matter of work flow.  I have a local it repos
on my machine using msysgit, as well as hosted git repos with an
online service.  Since I am a single developer its easy to just sync
my commits back to the remote repo for each project I have.  But if I
do get another developer or two to help me how does that work, do we
all just sync to the one hosted repo or should we all sync with
another too?  And if so how do I sync with multiple git repos.

Thanks in advance for your help.

                 reply	other threads:[~2011-04-04 22:13 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='BANLkTim=G0obXv9LjoT7nW9C=wpmJ=RAVQ@mail.gmail.com' \
    --to=rbilesky@gmail.com \
    --cc=git@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).