Benutzer:MovGP0/SVN
Zur Navigation springen
Zur Suche springen
MovGP0 | Über mich | Hilfen | Artikel | Weblinks | Literatur | Zitate | Notizen | Programmierung | MSCert | Physik |
Subversion (SVN)[Bearbeiten | Quelltext bearbeiten]
Branching[Bearbeiten | Quelltext bearbeiten]
svn checkout http://mysvnserver.com/svn/myapp/trunk
svn copy http://mysvnserver.com/svn/myapp/trunk http://mysvnserver.com/svn/myapp/branches/feature_TICKET_BEGRÜNDUNG
svn move http://mysvnserver.com/svn/myapp/branches/old http://mysvnserver.com/svn/myapp/branches/new
svn switch http://mysvnserver.com/svn/myapp/branches/new@4321
Commiting[Bearbeiten | Quelltext bearbeiten]
svn add FILENAME
svn delete FILENAME
svn commit -m "MESSAGE"
Conflict Resolving[Bearbeiten | Quelltext bearbeiten]svn resolve --accept working -R ./dir
svn resolve --accept mf -R ./dir
-R = Rekusiv innerhalb des Verzeichnises
Merging[Bearbeiten | Quelltext bearbeiten]
svn merge http://mysvnserver.com/svn/myapp/trunk --dry-run
svn merge http://mysvnserver.com/svn/myapp/trunk
svn switch ^/trunk
svn merge --reintegrate ^/branches/branch
Rollback[Bearbeiten | Quelltext bearbeiten]
svn merge -c -VERSION http://mysvnserver.com/svn/myapp/trunk
Weitere Rezepte[Bearbeiten | Quelltext bearbeiten]
svn st | where {$_ -match "(?=[?|!]).*"} # get new and deleted
svn st | where {$_ -match "(?=([! ] C )).*"}
svn st | where {$_ -match "(?=[?|!]).*"} | ?{$_ -notMatch ".*(bin\\[D|d]ebug).*"} | ?{$_ -notMatch ".*(obj\\[D|d]ebug).*"} | ?{$_ -notMatch ".*(\\obj)"} | ?{$_ -notMatch ".*(\\bin)"}
svn list -R | ?{$_ -match ".*[(bin\\[D|d]ebug)|(obj\\[D|d]ebug)|(bin\\[R|r]elease)|(obj\\[R|r]elease)].*"}
Get-ChildItem -Recurse| ?{$_ -match ".*(\\[(bin)|(obj)]\\).*"}
svn propset svn ignore FILE_OR_DIRECTORY
Get-ChildItem -Path "C:\." -Filter FileName.txt -Recurse
Internetquellen[Bearbeiten | Quelltext bearbeiten]
Referenzen[Bearbeiten | Quelltext bearbeiten]
|