[TFS + git] how to tie git to TFS and not to break anything?


Warning: count(): Parameter must be an array or an object that implements Countable in /home/styllloz/public_html/qa-theme/donut-theme/qa-donut-layer.php on line 274
0 like 0 dislike
5 views
Good day...
On the one hand there is a TFS repository, which I have to work, and on the other I want to have a local git repository locally and work with it so that when a commit in the master changes were rolled on my local copy with TFS, and they could be committing already on TFS. Well, to upgrade to git, it was updated with a local copy of a file that has been upgraded from TFS.
As for any other method to tie the git to TFS, the main thing that did not break on TFS...
Thanks in advance...
by | 5 views

1 Answer

0 like 0 dislike
in principle it is technically possible to keep a right git over TFS, but not very convenient
I offer you the following:
1st git over TFS holds (in the same folder where unpacked TFS), through .gitignore banim TFS ovy files(if any) and the reverse is about .git
2nd git is kept in the working directory, and synchronized with the first
1m cases of branch type overTFS
2nd is free to do PUSH and PULL
schema updates after update TFS committing all changes to git
if you upgrade git to do the checkout and committing to TFS (can be automated via hooks)
\r
to be able to push to the active branch of the 1st write repository configuration
[receive]
denycurrentbranch = ignore
\r
something like this, it is possible to keep everything, maybe TFS can hooks, in any case, it is possible to manage using pair of scripts
negative comments to the commits will be lost, though of course you can collect all the comments from the previous sync,git allows this
by

Related questions

0 like 0 dislike
2 answers
asked Aug 8, 2019 by makarychev13
0 like 0 dislike
1 answer
0 like 0 dislike
1 answer
110,608 questions
257,186 answers
0 comments
27,394 users