Eclipse上で新規プロジェクトを作成しておきます。
ローカル上にリポジトリを新規作成
プロジェクトを右クリック→チーム→プロジェクトの共用→リポジトリー・タイプ「Git」→次へ
リポジトリー→作成
親ディレクトリー「x:\git\repos」
名前「sample-porject」
→完了
→完了
コミット
パッケージエクスプローラから管理対象を右クリック→チーム→追加
パッケージエクスプローラから管理対象を右クリック→チーム→コミット
(clientから)新規リポジトリ(samples-project)の追加
$ cd /git/repos/gitolite-admin/conf
$ vi gitolite.conf
---- 編集前 ----
repo gitolite-admin
RW+ = test-user
repo testing
RW+ = @all
---- 編集後 ----
@developer = dev1 dev2
@tester = tester1 tester2
@admin = test-user
repo gitolite-admin
RW+ = @admin
repo testing
R = @all
RW+ = @admin
repo samples-project
R = @tester
RW = @developer
RW+ = @admin
---- ここまで ----
$ git add -A
$ git commit
$ git push origin master
(サーバへの変更通知時にサーバ側でsamples-projectが初期化される)
remote: creating samples-project...
remote: Initialized empty Git repository in ...
サーバに通知
パッケージエクスプローラからプロジェクトを右クリック→チーム→リモート→プッシュ
URI ssh://[email protected]/var/lib/gitolite/repositories/samples-project.git
ホスト xx.xx.xx.xx
リポジトリーパス /var/lib/gitolite/repositories/samples-project.git
プロトコル ssh
ユーザー gitolite
→次へ
Add all branches spec
→完了
最終更新:2012年08月13日 22:21