Search code examples
githubgithub-for-windowsemoticons

Prevent GitHub for Windows from adding emoticons to my initial commit message


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: https://i.sstatic.net/sXVkv.gif
The emoticon in the above example was "confetti ball": https://i.sstatic.net/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.


Solution

  • git commit --amend
    

    , then edit the commit message, then

    git push origin master --force 
    

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