* 既存ファイルをインポートして共用リポジトリを作る [#i649502c]

** 共用リポジトリの作成 [#mdc904d4]
 mkdir -p /var/git/repos/project1.git
 cd /var/git/repos/project1.git
 git init --bare
 git init --bare --shared

** 既存ファイルのインポート [#f059fdfd]
 cd /home/taro/tmp
 touch sample.txt
 git init
 git add .
 git commit -m 'import'

** 共用リポジトリにpush [#jefad404]
 git remote add origin file:///var/git/repos/project1.git
 git push origin master

** 個人用作業リポジトリの作成 [#o5021f78]
 cd /home/taro/work
 git clone file:///var/git/repos/project1.git project1

トップ   編集 差分 バックアップ 添付 複製 名前変更 リロード   新規 一覧 検索 最終更新   ヘルプ   最終更新のRSS