lang:git
差分
このページの2つのバージョン間の差分を表示します。
両方とも前のリビジョン前のリビジョン次のリビジョン | 前のリビジョン | ||
lang:git [2025/09/09 00:12] – [git サーバ構築] editor | lang:git [2025/09/09 00:17] (現在) – editor | ||
---|---|---|---|
行 13: | 行 13: | ||
---- | ---- | ||
- | ==== git サーバ構築 ==== | + | ===== git サーバ構築 |
- | git サーバは、更新情報のみの bare と実ファイルを有するの local git の二つが必要。\\ | + | 更新情報のみの |
+ | それが git サーバになる。 | ||
+ | local git で repository と同期する。 | ||
- | === bare git の構築 === | + | ==== bare git の構築 |
mkdir ownedGit | mkdir ownedGit | ||
cd ownedGit | cd ownedGit | ||
git init --bare --shared | git init --bare --shared | ||
- | === local git === | + | ==== local git ==== |
- | == git サーバと同一マシンの場合 == | + | === git サーバと同一マシンの場合 |
git clone " | git clone " | ||
| | ||
- | == git サーバと別マシンの場合 == | + | === git サーバと別マシンの場合 |
git clone ssh:// | git clone ssh:// | ||
- | === git サーバの確認 === | + | ==== git サーバの確認 |
git remote -v | git remote -v | ||
| | ||
- | === git サーバの解除 | + | ==== git サーバの解除 ==== |
git remote remove " | git remote remove " | ||
" | " |
lang/git.1757376757.txt.gz · 最終更新: by editor