A
A
Arkashasup2021-09-03 13:27:31
git
Arkashasup, 2021-09-03 13:27:31

Synchronization of two Git repositories (bare and working directory)?

Good day!
I have a git working directory that is in sync with SVN using Subgit. A clean copy (-bare) was made from the working directory and hosted as a shared remote repository using BonoboGitServer (I use a Windows server). After pushing a git commit to a remote repository on the server, the commit does not reach the working directory that is synced with SVN. I need the same thing with SVN, after submitting an SVN commit, it gets into the git working directory, but does not get into the remote one.
The essence of the question, how can I make the remote repository (-bare) and the working repository synchronize? I see a solution using git hooks, but I don’t really understand how they work. Has anyone come across a similar issue or knows another solution, please help.
Thanks in advance!

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
Saboteur, 2021-09-03
@saboteur_kiev

push to one repository and to another repository.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question