LoginSignup
1
1

More than 5 years have passed since last update.

Gitでテストコミットをさせるワンライナー

Last updated at Posted at 2016-10-03

Gitの動作確認とかがうまく行っているかテストするため用。良く忘れてしまうので独立。

乱数をファイルに書いて追加、コミット、プッシュ。

sh -c 'echo $RANDOM > random.txt; git add -A; git commit -m "test commit"; git push --all'

git-add-all-git-commit-git-push-allを使った場合。

echo $RANDOM > random.txt; ga -m "test commit"

git add --all; git commit -m 'first commit'; git push --all を打つのに疲れたので関数化した
http://qiita.com/yousan/items/b820373d4d2ac1e691a7

元ネタ

サーバの/etcを自動的にgitとかにコミットプッシュしてくれるetckeeperを使う
http://qiita.com/yousan/items/91dfc187f8345d299068

1
1
0

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
1
1