|
sofishApr 12, 2013
1
-,-
|
|
siwApr 12, 2013
2
很有喜感 ^^
|
|
solosApr 12, 2013
3
汗,这样也可以?
|
|
ax003dApr 12, 2013
6
我也发现有这个问题
|
|
orzflyApr 13, 2013
7
```
git config user.name "Linus Torvalds" git config user.email "torvalds@linux-foundation.org" git commit -m "Commiting as Linux Torvalds..." ``` 然后 github 上就会识别成是它干的=。= 因为 github 实际上是根据 user.email 识别的。 至于用户的昵称跟邮箱,`git log` 里有。 |
|
8
……原来这里不是 markdown 啊……
|
|
darkfallApr 13, 2013
9
可以的...我发现是因为有几台电脑设置了不同的邮箱
导致自己一个人的项目都不是全部自己提交的, 蛋疼死了 |
|
hit9Apr 13, 2013
10
对,以前也玩过这种。。
|
|
tt0411Apr 14, 2013
11
感觉是Git的一个设计缺陷,不光是Github
SVN的话不存在这个问题。 |
|
cicadaApr 15, 2013
12
非常蛋疼这个问题,有些团队成员以前没输入正确的email和username,导致后面看提交历史纪录的时候根本不知道是谁提交的。
|
|
xdataApr 15, 2013
13
如果是自己的git仓库,可以用pre-commit hook验证吧?
不知道目前有没有什么现成的方法在验证登录后(例如ssh),同时验证commit中的用户名,email有效性. |
|
ihipopApr 15, 2013
15
Git不是可以对提交进行签名么?
|
|
goldenloveApr 16, 2013
16
不知奥巴马同学有木有github账号~ 找机会山寨一份~
话说, 这是git的设计缺陷还是github的? - -; |
|
orzflyApr 16, 2013
17
@cicada 试试 http://stackoverflow.com/questions/750172/how-do-i-change-the-author-of-a-commit-in-git 。不过弄了之后需要带 --force 的 push,其他人的仓库需要重新 clone 或者 rebase。
|
|
swullingApr 16, 2013
18
|
|
jiyinyiyongApr 16, 2013
19
我也觉得是 Bug
|
|
cloudzhouApr 16, 2013
20
我做代码托管的时候在这个问题上想了很久,其实可以通过ssh证书来确定提交者是谁,但是,git是一种“内部信任”管理体系,就是伪造这个commit没有什么意义,依赖大家自觉和信任,另外,如果我在另一个开发者环境里面提交了一个commit,确实commiter是自己,这样的情况也是有的,所以最后决定放开约束。
|
|
judezhanApr 17, 2013
21
hook应该能处理这个事情,但没办法强制每个人都使用hook~
|