Skip to content

Instantly share code, notes, and snippets.

@nepsilon
nepsilon / git-change-commit-messages.md
Last active April 24, 2024 06:30
How to change your commit messages in Git? — First published in fullweb.io issue #55

How to change your commit messages in Git?

At some point you’ll find yourself in a situation where you need edit a commit message. That commit might already be pushed or not, be the most recent or burried below 10 other commits, but fear not, git has your back 🙂.

Not pushed + most recent commit:

git commit --amend

This will open your $EDITOR and let you change the message. Continue with your usual git push origin master.

@lanrion
lanrion / gist:9826458
Last active March 24, 2024 07:10
ubuntu上安装 五笔输入法

基于 IBus 框架

 1、安裝IBus框架:

  在终端中输入:

         sudo apt-get install ibus ibus-clutter ibus-gtk ibus-gtk3 ibus-qt4

  有些版本自带了此输入法框架,则不需要安装。