Skip to content

Instantly share code, notes, and snippets.

@Danghor
Danghor / using_git-svn.md
Last active November 4, 2020 07:16 — forked from rickyah/using_git-svn.md
A simple guide to git-svn

Getting started with git-svn

git-svn is a git command that allows using git to interact with Subversion repositories.git-svn is part of git, meaning that is NOT a plugin but actually bundled with your git installation. SourceTree also happens to support this command so you can use it with your usual workflow.

Reference: http://git-scm.com/book/en/v1/Git-and-Other-Systems-Git-and-Subversion

Cloning the SVN repository

You need to create a new local copy of the repository with the command

@Danghor
Danghor / Git vs. SVN.md
Last active October 4, 2019 09:06
Git vs. SVN
  • Lokale Branches erleichtern Abeit an mehreren Features gleichzeitig, wenn man bei einem Feature geblockt ist (z.B. Meeting bzgl. Architektur ausstehend)
  • Gute Integration in Visual Studio
  • lokale Operationen deutlich schneller als mit SVN
  • Arbeiten ohne Verbindung zum Server möglich (Zug, Homeoffice und VPN funktioniert gerade nicht etc.)
  • Änderungen in der History direkt in der IDE anschauen -> Syntaxhighlighting, Ordnerstruktur, mehrere Fenster
  • Staging Area geht nicht verloren, wenn man vor dem Commit doch noch Änderungen (usings aufräumen) am Code macht (Bei Tortoise SVN muss man wieder manuelle die Checkboxen setzen)
  • CodeLense zeigt mehr Daten an (Autor, letzte Änderung, wieviele Änderungen insgesamt etc.)
  • neu hinzugefügte Dateien sind offen sichtbar und müssen nicht extra rausgesucht werden, so können sie nicht vergessen werden
  • einfache .gitignore Datei, um Dateien zu verstecken, die nie eingecheckt werden -> so übersieht man nicht die neu hinzugefügten Dateien in dem ganzen Durcheinand
@Danghor
Danghor / PropertyChangedInformer.cs
Last active March 12, 2018 14:54
Implementation of INotifyPropertyChanged
using System.ComponentModel;
using System.Runtime.CompilerServices;
abstract class PropertyChangedInformer : INotifyPropertyChanged
{
public event PropertyChangedEventHandler PropertyChanged;
protected void OnPropertyChanged([CallerMemberName] string propertyName = null)
{
PropertyChanged?.Invoke(this, new PropertyChangedEventArgs(propertyName));