ベア リポジトリの作成

Synchronizers を起動して Management Consoles を同期するように設定する前に、Git リポジトリを初期化する必要があります。新しいベア リポジトリを作成する方法は、使用しているサードパーティ ツールによって異なります。

ベア リポジトリと開発ブランチを作成するには、次のコマンドを実行します。

# mkdir example.git
# cd example.git/
# git init --bare
Initialized empty Git repository in /gitrepos/example.git/
# cd ..
# git clone example.git
Cloning into 'example'...
warning: You appear to have cloned an empty repository.
done.
# git commit --allow-empty -m 'initial commit'
[master (root-commit) b96fdb8] initial commit
# git push origin
Everything up-to-date
# git checkout -b development
Switched to a new branch 'development'
# git push -u origin development:development

ヒント または、Synchronizer を使用してベア リポジトリを自動的に作成します。Synchronizer を起動すると、ベア リポジトリがまだ作成されていない場合は指定した場所に自動的に作成され、初期コミットが空になります。ただし、Synchronizer がまだ存在しない場合は、ブランチが作成されません。