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
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
最 近 文 章
- 关注的JS代码库 - Mon, 30 Nov -0001 00:00:00 +0000
- svn 出错:Directory is missing - Mon, 30 Nov -0001 00:00:00 +0000
- Unit Test - Mon, 30 Nov -0001 00:00:00 +0000
- PHPDoc - Mon, 30 Nov -0001 00:00:00 +0000
- yii框架快速入门 - Mon, 30 Nov -0001 00:00:00 +0000
- IE下前端开发之痛的根源 - Mon, 30 Nov -0001 00:00:00 +0000
- 一些PHP的错误解决办法 - Mon, 30 Nov -0001 00:00:00 +0000
- 我看PHP Frameworks - Mon, 30 Nov -0001 00:00:00 +0000
- 免费空间已死 - Mon, 30 Nov -0001 00:00:00 +0000
- AMD loader - Mon, 30 Nov -0001 00:00:00 +0000