5
5

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.

git commit の後に自動で git ftp push する

Last updated at Posted at 2014-12-05

deploy 何それおいしいの?

漢は黙って FTP !!

という環境なので、 git-ftp 様々なんですが、


$ git commit -am 'some comment'
$ git ftp push

が2度手間で面倒くさくなってきたので、git commit の後に git ftp push させる為に、post-commit を使ってコマンドを実行するようにした。

git-ftp についてはこちら

.git/hooks/ 内に、 post-commit を作成。

post-commit

exec git ftp push --user %Username% --passwd %Password% ftp://%path_to_folder%

これだけ。

hook についてはこちら

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

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?