git:publishing
差分
このページの2つのバージョン間の差分を表示します。
両方とも前のリビジョン前のリビジョン | |||
git:publishing [2024/10/17 16:03] – nullpon | git:publishing [2024/10/17 16:03] (現在) – nullpon | ||
---|---|---|---|
行 8: | 行 8: | ||
===== サーバ側準備 ====== | ===== サーバ側準備 ====== | ||
- | * サーバ | + | * サーバ |
- | * リポジトリ / | + | * リポジトリ / |
* ドキュメントルート / | * ドキュメントルート / | ||
公開用のリポジトリを作る | 公開用のリポジトリを作る | ||
- | $ cd / | + | $ cd / |
$ git init --bare | $ git init --bare | ||
行 31: | 行 31: | ||
remoteリポジトリを追加(名前は何でも良いがoriginという名前にはしない方がいいだろう、ここではwebserverにした) | remoteリポジトリを追加(名前は何でも良いがoriginという名前にはしない方がいいだろう、ここではwebserverにした) | ||
- | $ git remote add webserver ssh:// | + | $ git remote add webserver ssh:// |
webserverにpushする。 | webserverにpushする。 |
git/publishing.1729180991.txt.gz · 最終更新: 2024/10/17 16:03 by nullpon