Git:添加舞台描述 [英] Git: add stage description

查看:100
本文介绍了Git:添加舞台描述的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我的简短问题是 - 是否有可能将描述(消息)添加到staged文件?一些选择像git commit -mFancy message goes here。



谢谢。

解决方案

分阶段文件纯粹位于您的仓库本地,不可用于审查(因为没有其他人可以访问您的本地仓库)

提交,另一方面,可以推送和审查。

通常在 Gerrit服务器 ,这将允许审查和投票,并且会拒绝这些提交,并以保护提交的方式将它们推向目标回购。




My short question is - is there a possibility to add description (message) to staged files? Some alternative like "git commit -m "Fancy message goes here"".

Thanks.

解决方案

Staged files are purely local to your repo and not available for review (because nobody else would have access to your local repo)

Commits, on the other hand, can be pushed and reviewed.
Typically on a Gerrit server, which will allow reviews and votes, and will either reject those commits, and push them in turn to the target repo, in a "guarded commits" way.

这篇关于Git:添加舞台描述的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆