ユーザ用ツール

サイト用ツール


lang:git

文書の過去の版を表示しています。


git

サーバーと同期

git pull ownedName ownedBranch

サーバーへ upload

git push ownedName ownedBranch

編集手順

  1. ファイル編集
  2. git add
  3. git commit

サーバの場合は、さらに pull する


git サーバ構築

git サーバは、更新情報のみの bare と実ファイルを有するの local git の二つが必要。

bare git の構築

mkdir ownedGit
cd ownedGit
git init --bare --shared

local git

git サーバと同一マシンの場合
git clone "path_To_ownedGit"
git サーバと別マシンの場合
git clone ssh://userName@gitServerAddress/"path_To_ownedGit"

git サーバの確認

git remote -v

=== git サーバの解除

git remote remove "repositoryName"

“repositoryName” は “git remote -v” の出力結果の1列目。default は、“origin”。

lang/git.1757376757.txt.gz · 最終更新: by editor

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki