阻止GitHub for Windows将表情符号添加到我的初始提交消息中 [英] Prevent GitHub for Windows from adding emoticons to my initial commit message

查看:149
本文介绍了阻止GitHub for Windows将表情符号添加到我的初始提交消息中的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我是git和GitHub的新手。我在Windows 7 64位上使用GitHub for Windows程序。我不喜欢的是,当我创建一个新的本地存储库时,添加了 .gitattributes 文件的初始更改会被赋予一个包含表情图标的提交消息(看似随机选择) 。



以下是这个问题的屏幕截图: http://i.stack.imgur.com/sXVkv.gif

上面例子中的表情是五彩纸屑球: http://i.stack.imgur.com/ePYdv.png



我如何防止这个表情符号?或者至少,我如何防止自动提交初始更改,以便我有机会编辑提交消息以删除图释?

尽管我更喜欢与程序的GUI进行交互,但我对命令行有足够的练习,如果此问题的修复需要使用它,我对此感到满意。



对此的任何帮助都将非常感激。

解决方案

  git commit --amend 

,然后编辑提交信息,然后

  git push origin master --force 



< (如果最初的提交也被推到后面)


I'm new to git, and to GitHub. I'm using the GitHub for Windows program on Windows 7 64-bit. What I dislike is that when I create a new local repository, the initial change where the .gitattributes file is added is given a commit message containing an emoticon (seemingly chosen at random).

Here is a screencap of this problem in action: http://i.stack.imgur.com/sXVkv.gif
The emoticon in the above example was "confetti ball": http://i.stack.imgur.com/ePYdv.png

How do I prevent this emoticon? Or at least, how do I prevent the inital change from being automatically committed so that I have the opportunity to edit the commit message to remove the emoticon?

Even though I'd prefer to interact with the program's GUI, I have enough practice with the command line that if the fix for this issue requires using it, I'm comfortable with that.

Any help for this would be much appreciated.

解决方案

git commit --amend

, then edit the commit message, then

git push origin master --force 

(if the initial commit was also pushed behind your back)

这篇关于阻止GitHub for Windows将表情符号添加到我的初始提交消息中的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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