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.

gitのpushとかを簡単に

Posted at

gitを簡単に

githubpagesを使っている
プログラムを変えてはgithubに挙げて確認して
ローカルじゃできないのかと
頑張ればできるのは知っているけどそんなのめんどいじゃないか

ということで
どういうことで?

よくあるgitの
add→commit→push
の流れをshellスクリプトとして,run.shにやらせることにしました
本物のアプリを作ってるときにこんなことしてはまじで怒られるかもですが,個人開発
間違えても何も問題ないです
なにかもっといい顔文字あれば教えてください

if [ "$1" = "" ]
then
    echo 'コメントよこせ'
    echo '( ´ ▽ ` )ノ'
else
    echo $1
    echo -e '\e[36mgit add .\e[36m'
    git add .
    echo -e "\e[36mgit commit -m $1\e[36m"
    git commit -m $1
    echo -e '\e[36mgit push -u origin master\e[36m'
    git push -u origin master
fi
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?