1
2

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 3 years have passed since last update.

簡単!automaterを使ってgitでバッチ処理

Last updated at Posted at 2020-12-15

マンハッタンコードchi:birdさんに「automaterを使用すると簡単に自動化できるよ」
との情報をいただいたので
面倒なgitのコマンドを自動化することにしました

automaterを起動し新規書類作成後アプリケーションを選択
スクリーンショット 2020-12-14 10.44.09.png

テキストの入力を求めるを追加
スクリーンショット 2020-12-14 10.54.11.png

変数の値を設定を追加

スクリーンショット 2020-12-14 10.54.43.png

シェルスクリプトを追加

スクリーンショット 2020-12-14 10.55.58.png

シェルスクリプトに以下コマンドを記載します

ssh-add -A (ssh agentを復元)
cd Users/hogehoge (gitのレポジトリ配下まで移動)

git add . 

git commit -m "$1" ($1 ==>テキストで入力した値)

git push 

push時にパスワードを要求される場合(sshの場合)

ssh -agentの設定する必要あり
https://qiita.com/ggg-mzkr/items/fd32e1a6b7353ca52d3c

mac起動時に実行したい場合

https://qiita.com/ggg-mzkr/items/fd32e1a6b7353ca52d3c
環境設定->ユーザーとグループ->ログイン項目に先ほど作成したアプリを追加

時間帯によってアプリを起動させたい場合

macのカレンダーを使用する

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

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?