112
43

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

GitHubで過去1年分毎日草を生やすワンライナー

Last updated at Posted at 2018-08-20

動作確認環境

GNU bash, version 3.2.57(1)-release (x86_64-apple-darwin17)

ワンライナー

適当なリポジトリで以下を実行すると過去365日に1日ずつ空コミットのログを作成します。

for i in {1..365} ; do d=`LANG=C date -v-${i}d "+%a %b %d %H:%M:%S %Y -0900"`; git commit --allow-empty -m "YEAH" --date="$d"; done

pushすると365日毎日コミットした(してない)コミットログがプッシュされ、GitHubにたくさん草が生えます。

スクリーンショット 2018-08-21 1.17.45.png

こちらを参考にさせていただきました。
http://neos21.hatenablog.com/entry/2016/11/20/012724

112
43
4

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
112
43

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?