# 如何使用登录用户作为提交代码的作者

**URL:** <https://forum.gitea.com/t/topic/8681>\
**Category:** 中文求助(Chinese Only)\
**Created:** [February 29, 2024, 6:15am UTC](https://forum.gitea.com/t/topic/8681 "2024-02-29T06:15:03Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![LinkCaau](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.gitea.com/linkcaau/32/4440_2.png) [@LinkCaau](https://forum.gitea.com/u/LinkCaau)\
**Post date:** [February 29, 2024, 6:15am UTC](https://forum.gitea.com/t/topic/8681/1 "2024-02-29T06:15:03Z")

</div>

![image](https://us1.discourse-cdn.com/flex020/uploads/gitea/original/2X/7/74144dcbabcfc6cba37b527f11c5879f5eac301a.png)  
提交记录时, 代码的作者是用户自己配置的git user, 这不是我想要的  
有没有配置, 强制将Committer的名字改为gitea的登录账号

---

<div class="post-metadata">

**Author:** ![lunny](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.gitea.com/lunny/32/4701_2.png) [@lunny](https://forum.gitea.com/u/lunny)\
**Post date:** [March 7, 2024, 4:31am UTC](https://forum.gitea.com/t/topic/8681/2 "2024-03-07T04:31:26Z")

</div>

你可以在分支保护中强制要求签名来达到这个目的。
