Subversion

From no name for this wiki
Revision as of 10:08, 8 January 2011 by Claude (talk | contribs) (subversion)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

Repository anlegen:

svnadmin create /mnt/s3/repository

Verzeichnis im Repository anlegen:

svn mkdir file:///mnt/s3/repository/myproj

Es erscheint ein Dialog für den Commit-Kommentar. Cntr O, Text eingeben, Enter, Cntr X

Projekt importieren:

cd /home/ich/myproject
svn import file:///mnt/s3/repository/myproj

Projekt auschecken:

cd /home/ich/myworkspace
svn checkout file:///mnt/s3/repository/myproj

Subversionsserver starten:

svnserve -d --foreground -r /mnt/s3/repository

Auschecken aus remote server:

 svn checkout svn://mycomputer.com/myproj myproj --username hugo


Alle .svn Directories entfernen.

find . -name .svn -print0 | xargs -0 rm -rf

Alle backupfiles entfernen:

$ find ./ -name '*~' -exec rm '{}' \; -print -or -name ".*~" -exec rm {} \; -print


Alle Änderungen reverten:

svn revert --recursive .

Mergen

svn merge -c -854 l3toks.dtx
svn merge -c -854 l3toks.dtx

Ein Commit rückgängig machen:

svn merge -r [current_version]:[previous_version] [repository_url]

z.b.

svn merge -r 155:154 .

Eine bestimmte Version herholen:

svn up -r [Revisionsnummer] [Pfad der Datei]


Resourcen: