R
R
Ruslan Khoroshkevich2016-03-29 15:59:57
git
Ruslan Khoroshkevich, 2016-03-29 15:59:57

Is it possible to connect a folder with git to two repositories?

the crux of the matter is in the title.
for what?
there is a certain network, it has a git repository. there is a dev server that is tied to the repository.
the repository is set to an intranet IP, i.e. from the outside will not connect to it.
the network or repository settings cannot be changed in any way (a bit strange security policies) you
need the ability to work from home,
for this it is thought to raise a copy of the repository at home and make it available outside.
I think the logic is this:
at home -
I do a push to the home repository, tk. the worker is not available
at work -
I pull from home
then push to the intranet repository
is such logic possible and if so how are two repositories connected to one git folder.
I just never set up git, I worked with the one already set up.
thank.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
Denis Zagaevsky, 2016-03-29
@Zezst

"git remote add repository_name ref" You
can assign any name, such as home.
git push home master Something
like that.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question