Last Updated: February 25, 2016
·
507
· oz123

Showcasing where git is better then subversion

Aside for the funny name, git is superior to subversion. It's hard migrating an organizations from subversion to git. Such migration requires training and changing work flows.
As a new comer and a developer with non leading role, I have no say what so ever on such matters. But I have git-svn to save me.
Today, I ran a git pull on my open source project's directory, and I had a pleasant surprise, which I completely forgot after working for a few weeks directly with subversion:

[oz123@Debian ~]$ cd Software/pwman3/
[oz123@Debian pwman3]$ git pull
remote: Counting objects: 105, done.
remote: Compressing objects: 100% (73/73), done.
remote: Total 105 (delta 55), reused 62 (delta 32)
Receiving objects: 100% (105/105), 43.16 KiB, done.
Resolving deltas: 100% (55/55), done.
From https://github.com/pwman3/pwman3
   02a663c..3f59fbb  master     -> origin/master
Updating 02a663c..3f59fbb
Fast-forward
 pwman/__init__.py                |   99 +++++++++++++++++++++++
 pwman/data/convertdb.py          |   17 +++--
 pwman/data/drivers/mysql.py      |   34 ++++----
 pwman/data/drivers/postgresql.py |   34 ++++----
 pwman/data/drivers/sqlite.py     |   30 ++++----
 pwman/tests/test_complete_ui.py  |   41 +++++++---
 pwman/tests/test_converter.py    |   30 ++++----
 pwman/ui/base.py                 |   34 ++++----
 pwman/ui/cli.py                  |    6 +-
 pwman/ui/mac.py                  |    4 +-
 pwman/ui/tools.py                |    8 +-
 pwman/ui/win.py                  |    2 +-
 pwman/util/config.py             |   10 +-
 scripts/pwman3                   |   99 +-----------------------
 scripts/webui.py                 |  161 ++++++++++++++++++--------------------
 setup.py                         |    2 +-
 16 files changed, 311 insertions(+), 300 deletions(-)

And this is color ofcourse. Now let's compare this to svn update:

[oz123@Server Project]$ svn up
At revision 2495.
[oz123@Server Project]$

You see my point right? Subversion is output quite sparse!
Yes, there is a combination of commands that let's one see the overview, but
git just enforces seeing it. Unless of course, you suppress the output.

You know more such little differences? Please share them with me. I will be happy to create a collection of these!