SVN Tips & # 8596; Git workflow

I have a problem using Git. Keep in mind that I am very new to Git.

Problem: I need to synchronize my work with my home / mobile phone. My workstation uses SVN and cannot be accessed from outside (I cannot change this). I am also blocked from sshing to the street (I cannot change this either). Back in my house, I need to make a change.

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 choose Github is because of HTTPS support, it will solve my problem in sshing outside my office.

So my question is:

  • Is this the right way to do this?
  • If this is good enough, can someone give me a rough example of how I can do this?

I know that the second question is big, but I can’t merge my changes from my home back to the SVN server. Thanks in advance.

Update:

In fact, I am using a USB drive as the medium to transfer my Git repository. However, I was hoping that I would not have to use a USB drive at all (everyone is automatically sorted on the Internet and afraid that I will pull out the USB port somewhere). I even used Dropbox for a while, but then, the repository started to get too big, and Dropbox does not play well with a lot of small files (over 20,000).

After some consideration (process complexity, data sensitivity), I think I'm just a USB drive for transferring my Git repository. However, I will keep the question open so that I can learn some Git commands from this problem.

, :

  • SVN Server -> Git (Office PC) -> Github -> Git (House PC)
  • : login Github.
  • : Github .
  • git svn init svn://url -s
  • ???

, , , , - 5.

+3
2

, , GitHub, , USB- .

+2

:

  • Github .
  • git -svn .

, git svn clone -. , . git svn rebase && git svn dcommit , , git -svn.

: sshd SSH HTTP (S)? , . , , , , Github.

+1

Source: https://habr.com/ru/post/1773758/


All Articles