- Create a fresh bare repository on the server:
git init --bare newrepo.git
- Add it as a remote in your local repo:
git remote add newrepo git://user@server.com/newrepo.git
git push newrepo master
to push a particular branch, orgit push --all newrepo
to push all branches
or
git clone --bare /path/to/repo newrepo.git
0 ความคิดเห็น:
แสดงความคิดเห็น