LoginSignup
4
3

More than 5 years have passed since last update.

さぁ、お前の罪(git push origin master)を数えろ!

Last updated at Posted at 2015-03-12

コマンド履歴から git push origin master した回数が出力されます。

history | grep "git push origin master" | wc -l                                                

表示された数だけ腹筋しましょう。(ちなみに、私は53回でした)

Bashの場合、以下によって自身のコマンド履歴を残さずに実行できます。

history | grep "git push origin master" | wc -l;history -d $(history 1 | awk '{print $1}')

参考

Linuxでコマンド履歴を残さない方法 | 十円玉という名のブログ - http://www.10yendama.com/archives/257

4
3
2

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
4
3