随笔分类 -  Git

git rebase总结及git使用规范
摘要:一、git规范 场景一:如果代码commit到本地库了,但是commit之前忘记pull了,远程代码也已更新,此时不能使用pull直接拉取远程代码(分支会产生merge的记录): 解决方法:commit之后,使用git fetch,拉取远程代码到缓存区,然后使用git rebase origin/d 阅读全文

posted @ 2018-12-07 11:39 平平无奇杨小兵 阅读(5602) 评论(0) 推荐(0)