Loving Coding & Visual Design

深入理解git workflow

If you’re fighting Git’s defaults, ask why.

Treat public history as immutable, atomic, and easy to follow. Treat private history as disposable and malleable.

The intended workflow is:

Create a private branch off a public branch.
Regularly commit your work to this private branch.
Once your code is perfect, clean up its history.
Merge the cleaned-up branch back into the public branch.
> git checkout master
> git checkout -b cleaned_up_branch
> git merge --squash private_feature_branch
> git reset

source: http://sandofsky.com/blog/git-workflow.html



下一页


最 近 文 章

  1. 关注的JS代码库 - Mon, 30 Nov -0001 00:00:00 +0000
  2. svn 出错:Directory is missing - Mon, 30 Nov -0001 00:00:00 +0000
  3. Unit Test - Mon, 30 Nov -0001 00:00:00 +0000
  4. PHPDoc - Mon, 30 Nov -0001 00:00:00 +0000
  5. yii框架快速入门 - Mon, 30 Nov -0001 00:00:00 +0000
  6. IE下前端开发之痛的根源 - Mon, 30 Nov -0001 00:00:00 +0000
  7. 一些PHP的错误解决办法 - Mon, 30 Nov -0001 00:00:00 +0000
  8. 我看PHP Frameworks - Mon, 30 Nov -0001 00:00:00 +0000
  9. 免费空间已死 - Mon, 30 Nov -0001 00:00:00 +0000
  10. AMD loader - Mon, 30 Nov -0001 00:00:00 +0000