Qiita Teams that are logged in
You are not logged in to any team

Log in to Qiita Team
Community
OrganizationAdvent CalendarQiitadon (β)
Service
Qiita JobsQiita ZineQiita Blog
3
Help us understand the problem. What is going on with this article?
@mizukmb

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

More than 5 years have passed since last update.

コマンド履歴から 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

3
Help us understand the problem. What is going on with this article?
Why not register and get more from Qiita?
  1. We will deliver articles that match you
    By following users and tags, you can catch up information on technical fields that you are interested in as a whole
  2. you can read useful information later efficiently
    By "stocking" the articles you like, you can search right away
mizukmb
投稿した記事は古い内容のままアップデートされてないものも含まれていますので、参照する際はご注意ください。
misoca
クラウド請求管理サービス「Misoca」を開発する、Misoca開発チームです。

Comments

No comments
Sign up for free and join this conversation.
Sign Up
If you already have a Qiita account Login
3
Help us understand the problem. What is going on with this article?