Answer the question
In order to leave comments, you need to log in
[TFS + git] how to tie git to TFS and not break anything?
Good day ...
On the one hand, there is a TFS repository that I need to work with, and on the other hand, I want to have a local git repository and work with it locally so that when I commit to master, the changes roll over to my local copy with TFS, and I can to commit them already on TFS. Well, so that when updating in git, it is updated from a local copy of files updated from TFS.
Any other way to tie git to TFS is also suitable, the main thing is not to break anything on TFS ...
Thanks in advance ...
Answer the question
In order to leave comments, you need to log in
in principle, it is technically possible to keep git directly above TFS, but it’s not very convenient to
suggest the following option: the
1st git is kept above TFS (in the same folder where TFS is unpacked), we ban TFS files (if any) through .gitignore, and the opposite is already about. git
2nd git is kept in the working folder, and is synchronized with the first
on the 1st case, a branch of type overTFS
2nd can freely do PUSH and PULL
update scheme - after updating TFS, commit all changes to git
in case of updating git, do checkout and commit to TFS (can be automated through hooks)
so that you can push to the active branch of the 1st repository, write the config
[receive]
denycurrentbranch = ignore
here's how you can keep it all, maybe TFS can do hooks, in any case, this can be controlled using a couple of scripts
minus - comments on commits will be lost, although of course you can collect all comments from the previous synchronization, git allows this
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question