以上只是冰山一角,他写的代码我就懒得说了。我也不是针对谁,就事论事,和这种人共事,就是难受。祝大家都能找到更好的工作,避免遇到这种同事。
101
sagaxu 2020-09-30 21:16:43 +08:00 via Android 1
完全可以通过流程规避,repo 设置成禁止 force push,禁止非 fast forward push 。
然后每次有异常的时候,都能轻易查到是谁的锅,截图发大群里 |
102
IMXT 2020-09-30 22:18:03 +08:00 via Android
十几年外包经验?
|
104
sagaxu 2020-09-30 23:09:05 +08:00 via Android
@Gilfoylek 把太多分支历史信息 merge 到 master 中,commit 历史会很杂乱
|
105
AmrtaShiva 2020-09-30 23:22:07 +08:00 via Android
@wxsm #14 这是关系户吧
|
106
20015jjw 2020-09-30 23:22:39 +08:00 via Android
u1s1 用过 hg 之后 真香 git 太难用了
|
107
laike9m 2020-10-01 00:19:37 +08:00 via Android
吐槽同事就说明该换公司了
这句话我已经讲太多遍了。。 |
108
Felldeadbird 2020-10-01 00:33:56 +08:00
他这种根本不是不会呀。。是根本没学。
git 本身没严格的流程控制,不熟悉的话,非常容易造成代码丢失。哈哈哈 |
110
tairan2006 2020-10-01 07:04:28 +08:00 via Android
2020 年还有人不会用 git,还振振有词说是 git 的问题,真是醉了。v2 综合水平越来越低了…
|
111
macrosea 2020-10-01 10:25:42 +08:00 via iPhone 1
底层人踩人,上层人捧人;该醒醒了
|
112
weitch 2020-10-01 10:51:06 +08:00
码农何必为难码农,公司又不是你开的
|
113
falcon05 2020-10-01 10:59:25 +08:00
多人合作的时候慎用 rebase,因为会重写 commit,导致其他同事需要 re-merge 你的工作,然后你 pull 回来,事情会变得混乱。
https://git-scm.com/book/en/v2/Git-Branching-Rebasing > The Perils of Rebasing Ahh, but the bliss of rebasing isn’t without its drawbacks, which can be summed up in a single line: Do not rebase commits that exist outside your repository and that people may have based work on. If you follow that guideline, you’ll be fine. If you don’t, people will hate you, and you’ll be scorned by friends and family. When you rebase stuff, you’re abandoning existing commits and creating new ones that are similar but different. If you push commits somewhere and others pull them down and base work on them, and then you rewrite those commits with git rebase and push them up again, your collaborators will have to re-merge their work and things will get messy when you try to pull their work back into yours. |
114
falcon05 2020-10-01 11:03:25 +08:00
不要在已发布或者公共的 commit 里 rebase
|
115
babyblue 2020-10-01 11:20:28 +08:00 via Android
然而他脾气还特别大
,觉得自己根本没错 😌 |
116
yingqi7 2020-10-01 13:13:16 +08:00 via iPhone
@nnws2681521 你自己的当然没问题,但是我寻思着团队协作你还能不提交?
|
117
wangzitiansky 2020-10-03 08:27:12 +08:00 via Android
@liulilte 不会还不学就问题很大吧
|
118
MannyWang 2020-10-05 11:16:04 +08:00
Git 還用專門學?用到看一下不就可以了?
|