-
Notifications
You must be signed in to change notification settings - Fork 30
How to configure your git test repository
KuiKui edited this page Jan 31, 2012
·
2 revisions
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
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
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