Using Git Locally then merging and checking into StarTeam

拟墨画扇 提交于 2019-11-30 18:18:55

问题


My client currently requires us to use StarTeam for checking in our code changes. I would like to pull all the code down from StarTeam and setup a local Git repository so that I might take advantages of the branching to work on some upgrades of some JQuery modules. Does anyone have any suggestions or advice on using a local Git Repository then checking in changes to a StarTeam server?


回答1:


I would go a bit like git-svn does that kind of workflow:

  • import in a Git repo, in the master branch
  • make all the branches from there, but never committing anything to master
  • make all the merges between branches other than master (again, the master branch is supposed to reflect the StartTeam server latest import)
  • when ready to go back to StartTeam:
    • first update master (with the latest from StartTeam)
    • then merge my work back to the master branch
    • use the content of that master branch as a source to reimport in StartTeam (meaning at this point, master will again represents StarTeam content)


来源:https://stackoverflow.com/questions/6591744/using-git-locally-then-merging-and-checking-into-starteam

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!