« Memo to self, regarding packet loss | Main | Using ppc and 10.4 SDK with Xcode 4 »

Mercurial : Initial push of a local repository to a server

In the mercurial documentation, it's seems to always be like this:
  1. you clone something off the server
  2. you do some changes
  3. you push the changes back
But what, if you started locally, and then want to push to the server ?

$ basename `pwd`
test
$ hg init
$ touch x.c
$ hg add
Füge x.c hinzu
$ hg commit -m "just a test" 
$ hg init ssh://<user>@<host>:<port>/<repository-path>/test
$ hg push ssh://<user>@<host>:<port>/<repository-path>/test
Übertrage nach ssh://<user>@<host>:<port>/<repository-path>/test
Suche nach Änderungen
Entfernt: adding changesets
Entfernt: adding manifests
Entfernt: adding file changes
Entfernt: added 1 changesets with 1 changes to 1 files

Post a comment

(If you haven't left a comment here before, you may need to be approved by the site owner before your comment will appear. Until then, it won't appear on the entry. Thanks for waiting.)

About

This page contains a single entry from the blog posted on February 13, 2011 8:54 PM.

The previous post in this blog was Memo to self, regarding packet loss.

The next post in this blog is Using ppc and 10.4 SDK with Xcode 4.

Many more can be found on the main index page or by looking through the archives.