c# - Managing the same project with TFS & Git -
my company works tfs our source control server. our teamwork on it. however, we'd publish our projects comfortably in open source format within organization, we've set local github git server.
i've used git plugin visual studio 2012 push 1 of projects server. proved successful, however, required me copy existing solution bound tfs, directory in order 'lose' tfs bindings. if team makes changes on tfs solution, i'll need manually re-apply them git-bound solution.
is possible switch between source controls on same solution?
at moment, switching entirely git not option. tfs more reliable , backed company.
git-tf way go (as commented @daveshaw). should work :
first, clone tfs repo git-tf. may want use --shallow
if tfs history long , want quick clone, won't have entire history, last commit (like first one).
git tf clone --shallow http://myserver:8080/tfs/mycollection $/teamprojecta/main
add github repo remote
git remote add github https://github.com/<user>/<repo>.git
the simplest thing delete current github history new tfs history
git push github master --force
then, whenever want update github repo, follow steps (--deep
make every following tfs commit git commit, opposite of --shallow
)
git tf pull --deep git push github master
Comments
Post a Comment