i'm in project uses tfs , git. , i've realized not going able fork anymore thought ask guys think solution.
the problem having have "base" project.that reused every client have. each client has modifications extent (about 5-10%).
i planning fork project "a" "client_a" , make changes needed. classes changes can made implementations of abstract classes in "a", able sync new version of long dependencies met.
my problem forking not supported, using bitbucket before in team. since integrated rest of company need run else running...
this thinking doing...
git clone http://mycompany.com/tfs/mydefaultcollection/my git projects/_git/a cd git fetch origin git branch -a git checkout -b a_branch1 origin/a_branch1 git checkout -b a_branch2 origin/a_branch2 git checkout -b a_branchn origin/a_branchn git branch -a git remote add new-origin http://mycompany.com/tfs/mydefaultcollection/my git projects/_git/client_a git push --all new-origin git push --tags new-origin git remote rm origin git remote rename new-origin origin
if still able upstream a?
if remove upstream remote (a
), cannot work.
probably want like
# 1. create client_a repo in tfs # 2. repo locally git clone http://mycompany.com/tfs/mydefaultcollection/my git projects/_git/a cd # 3. redefine remotes git remote rename origin upstream git remote add origin http://mycompany.com/tfs/mydefaultcollection/my git projects/_git/client_a # 4. push client git push origin # 5. push (when proper) git push upstream
git client cannot create repository in tfs, need manually via web interface or using tfsgitadmin utility.
Comments
Post a Comment