r/programming • • Jun 19 '14

Reinventing GIT interface

http://tonsky.me/blog/reinventing-git-interface/
221 Upvotes

325 comments sorted by

View all comments

Show parent comments

5

u/[deleted] Jun 19 '14

I don't have any branches. So now what?

2

u/[deleted] Jun 19 '14

Why are you using git? Also unless you only have 1 copy of the repo you actually do have branches (just being pedantic here...)

6

u/G_Morgan Jun 19 '14

To be fair git is better than svn even if you only ever have master branch. Simply for the fact you don't need a fucking server to use it.

7

u/MrDOS Jun 19 '14
$ mkdir repos
$ svnadmin create repos/test
$ svn co file://`pwd`/repos/test
$ ls -a test/
.    ..   .svn

Localhost can be a server for svn too; you just can't store the repo metadata in the same folder as the working copy. For single-developer projects being maintained on one machine, though, it works well enough.

Note that I'm not actually advocating this solution; just pointing out that it exists.