开发者

git push(or pull) along with local history

I am a svn user and thought will try out git. I created a repository which would act like my central repository, a staging repo for testing and moving it to central repo and many clone of staging repo. I made a few commits to the clone.

Now to make the commit history in that clone available in the staging repo I did

git pull --rebase

and now I have the changes as they happened on that clone. Now you would wonder why I would want to do it. May be sometimes (or many times) one of the the small commits may have screwed up your software and it is easy for someone testing the staging repo to go back one small step rather than one sift through all the changes looking for the bug. One thing that is stopping me from adopting git is the central or staging repo will have big jumps rather than incremental changes. The incremental changes happen i开发者_如何学Pythonn clones of the developers. Is it the way DVCS works or have I got my arrangement wrong? Thanks


I think you might be over complicating things with multiple repo's. I think your workflow would work using branches instead of repo's.

See: http://nvie.com/posts/a-successful-git-branching-model/

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜