使用git的一些体会;
1:每增加一个小的功能,一定要git add,然后commit -m'';将branch对应的issue对应起来;这样起来代码好追溯;
2:合理利用git stash,当发现自己的代码还是存在问题,但是同时又需要更新代码的时候,则需要git stash;如果需要恢复自己代码,则用git stash pop;
3:在工作中,最常见的git workflow如下:

发布分支


功能分支

参考文献:https://github.com/xirong/my-git/blob/master/git-workflow-tutorial.md#251-解析pull-request
网友评论