~ubuntu-branches/ubuntu/intrepid/git-core/intrepid-updates

« back to all changes in this revision

Viewing changes to Documentation/howto/setup-git-server-over-http.txt

  • Committer: Package Import Robot
  • Author(s): Gerrit Pape
  • Date: 2007-04-22 13:31:05 UTC
  • mfrom: (1.1.14)
  • Revision ID: package-import@ubuntu.com-20070422133105-tkmhz328g2p0epz1
Tags: 1:1.5.1.2-1
* new upstream point release.
* debian/changelog.upstream: upstream changes taken from mailing list
  announcement.

Show diffs side-by-side

added added

removed removed

Lines of Context:
70
70
Initialize a bare repository
71
71
 
72
72
    $ cd my-new-repo.git
73
 
    $ git --bare init-db
 
73
    $ git --bare init
74
74
 
75
75
 
76
76
Change the ownership to your web-server's credentials. Use "grep ^User
205
205
Now, add the remote in your existing repository which contains the project
206
206
you want to export:
207
207
 
208
 
   $ git-repo-config remote.upload.url \
 
208
   $ git-config remote.upload.url \
209
209
       http://<username>@<servername>/my-new-repo.git/
210
210
 
211
211
It is important to put the last '/'; Without it, the server will send
222
222
 
223
223
This pushes branch 'master' (which is assumed to be the branch you
224
224
want to export) to repository called 'upload', which we previously
225
 
defined with git-repo-config.
 
225
defined with git-config.
226
226
 
227
227
 
228
228
Troubleshooting: