Skip to content

How to configure your git test repository

KuiKui edited this page Jan 31, 2012 · 2 revisions

Create test remote

cd /my/test/remote/base/path
mkdir remote-test.git
cd remote-test.git
git init --bare

It's this remote that you must use in your project setup : /my/test/remote/base/path/remote-test.git

Create test repository

cd /my/test/repository/base/path
git clone remote-test.git repository-test
cd repository-test
touch file
git add file
git commit -m "first commit (on master)"
git push -u origin master

Create feature branch on test repository

cd /my/test/repository/base/path/repository-test
git checkout -b feature
[edit file]
git commit -am "second commit (on feature branch)"
git push -u origin feature