Ref : link

  1. Create a fresh bare repository on the server:
    git init --bare newrepo.git
  2. Add it as a remote in your local repo:
    git remote add newrepo git://user@server.com/newrepo.git
  3. git push newrepo master to push a particular branch, or
    git push --all newrepo to push all branches

or 

git clone --bare /path/to/repo newrepo.git

0 ความคิดเห็น:

แสดงความคิดเห็น

top