I'm having a problem using Git. Bear in mind I'm very new to Git.
The problem: I need to sync my work to my home/mobile. My workplace uses SVN and it cannot be accessed from outside (I can't change this). I'm also blocked from sshing to outside (I can't change this too). Back at my house, I need to commit my changes.
Proposed solution:
SVN Server -> Git (in my Office PC) -> Github -> Git (in my House PC)
SVN Server <- Git (in my Office PC) <- Github <- Git (in my House PC)
The reason I'm choosing Github is because of its HTTPS support, this will solve my problem in sshing to outside of my office.
So, my question is:
- Is this the correct way to do it?
- If it is good enough, can anyone give me a rough example on how can I do this?
I know 2nd question is a big one, but I'm having trouble merging my changes from my house back to the SVN server. Thanks in advance.
Update:
I've actually cosider using a USB drive as the medium to transfer my Git repository. However, I was hoping for a way so that I don't have to use USB drive at all (all automatically sorted in the Internet and was afraid I'll drop my USB somewhere). I even used Dropbox for a while, but then, the repository started to get too big and Dropbox doesn't play well with a lot of small files (more than 20,000).
After some consideration (the complexity of the process, the sensitivity of the data), I think I'll just USB drive to transfer my Git repository. However, I'll keep the question open so that I can learn some Git commands from this problem.
By the way, this is my current workflow in general:
SVN Server -> Git (Office PC) -> Github -> Git (House PC)No Problem- At my house: Created a login branch and pushed it back to Github.
- At the office: For the first time, I cloned back from my Github repository and merge the login branch.
- Then,
git svn init svn://url -s - ???
I've tried a few commands, but I don't think it's working, was hoping someone could help starting with step 5.