git-ftpのインストールと最初の設定まで
をテンプレートにして作成
[
トップ
] [
新規
|
一覧
|
検索
|
最終更新
|
ヘルプ
|
ログイン
]
開始行:
[[Git]]
*前提条件 [#lc2475d6]
-事前にbrewとgitが使えるようになっている必要があります
-コマンドラインの作業です
-対象OSはMacです
*手順 [#j62f986a]
$ brew install curl --with-ssl --with-libssh2
$ brew list curl
curlについてずらっと表示されればOK。パッケージがない場合...
$ brew list git-ftp
git-ftpが表示されればOK。
*gitの初期設定 [#n3069d65]
$ cd ~/Git管理したいディレクトリ
$ git init
$ git config --global user.name 名前
$ git config --global user.email メールアドレス
$ git config git-ftp.user FTPユーザー
$ git config git-ftp.url ftp://ftp.example.com/path
$ git config git-ftp.password FTPパスワード
$ git config git-ftp.connections 10
*gitリポジトリの作成 [#dc230be1]
$ touch test.txt
$ git add .
$ git commit -m "1st commit"
$ git ftp push
There are 1 files to sync:
[1 of 1] Buffered for upload 'test.txt'.
Uploading ...
Last deployment changed to 9db4812a1c6cfe3168dc69b71a0b2...
↑こんな感じでアップロードされます。
*ちなみに [#y726384f]
FTPサーバー上には.git-ftp.logというのがあり、commit ID?が...
*参考URL [#ne475201]
***インストールの仕方 [#l892cbc1]
http://wp-d.org/2014/02/26/5709/
***使い方 [#x6b00d00]
http://chun-oki.sw8field.com/webworks/20140419/2136.html
終了行:
[[Git]]
*前提条件 [#lc2475d6]
-事前にbrewとgitが使えるようになっている必要があります
-コマンドラインの作業です
-対象OSはMacです
*手順 [#j62f986a]
$ brew install curl --with-ssl --with-libssh2
$ brew list curl
curlについてずらっと表示されればOK。パッケージがない場合...
$ brew list git-ftp
git-ftpが表示されればOK。
*gitの初期設定 [#n3069d65]
$ cd ~/Git管理したいディレクトリ
$ git init
$ git config --global user.name 名前
$ git config --global user.email メールアドレス
$ git config git-ftp.user FTPユーザー
$ git config git-ftp.url ftp://ftp.example.com/path
$ git config git-ftp.password FTPパスワード
$ git config git-ftp.connections 10
*gitリポジトリの作成 [#dc230be1]
$ touch test.txt
$ git add .
$ git commit -m "1st commit"
$ git ftp push
There are 1 files to sync:
[1 of 1] Buffered for upload 'test.txt'.
Uploading ...
Last deployment changed to 9db4812a1c6cfe3168dc69b71a0b2...
↑こんな感じでアップロードされます。
*ちなみに [#y726384f]
FTPサーバー上には.git-ftp.logというのがあり、commit ID?が...
*参考URL [#ne475201]
***インストールの仕方 [#l892cbc1]
http://wp-d.org/2014/02/26/5709/
***使い方 [#x6b00d00]
http://chun-oki.sw8field.com/webworks/20140419/2136.html
ページ名: