K
K
kvant0n02015-01-14 13:02:16
git
kvant0n0, 2015-01-14 13:02:16

How to make automatic synchronization of a Git repository in TFS with a developer environment?

Good afternoon!
We use Team Foundation Server 2013 in development, as a client - Team Explorer for VisualStudio 2013 (outwardly it looks like Visual Studio, but very truncated in functionality, to a team explorer. You can't even create a solution). Git is selected as the version control system in the project.
I really want to make automatic synchronization of the repository with some arbitrary directory on an arbitrary server. Those. the algorithm is as follows - the developer made changes to the file in the local repository, clicked "Submit" or "Synchronize", the changes went to master, and at the same moment I want to send the changed files to a specific server in certain directories.
I guess you need to make some kind of script for this, bat or powershell, but it's not entirely clear what event it needs to be hung on ... and how to copy, because in TFS files are most likely stored not as files, but in MS SQL. Basically, I don't know how to proceed.
What is the best way to do this using the existing configuration?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
V
Vladimir Korshunov, 2015-01-23
@BekoBou

It needs to be called post-receive hookon the git server side. You can read more on the official website -  git-scm.com/book/en/v2/Customizing-Git-Git-Hooks

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question