0
0

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 1 year has passed since last update.

[忘備録]Githubのコマンド打つのすらめんどい[.command]

0
Last updated at Posted at 2024-12-07

前提

個人プロジェクトレベルでgitのいろんな操作すんのめんどくせぇ
ダブルクリックで勝手にプッシュまでやってほしい

1.ファイル

以下にファイルを用意して、末尾に .command をつけて保存
ここでは仮に auto-push.command とする

#!/bin/bash

cd pass/to/your/app
git add .
git commit -m "comment"
git push origin main

2.実行権限付与

chmod +x auto-push.command 

3.完成!

あとはファイルをダブルクリックすればプッシュしてくれるのだよ。
しかし、これはDockに固定できないので、めんどくさがりは
以下の記事を読んでくれ!

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

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?