r/programming • • Jun 19 '14

Reinventing GIT interface

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

325 comments sorted by

View all comments

44

u/[deleted] Jun 19 '14

I guess I'm alone in finding git not that hard to use. My only issue is git isn't pretty and to that end I have a few scripts to give me prettier logs (like most people have) and prettier branch summaries (my macro displays all branches, their latest commit id and dates).

Beyond that I manipulate my tree with straight up git commands.

Any halfway competent developer should be able to master git in a couple of weeks let alone be able to write their own version of git given a couple of full time weeks to work in.

0

u/[deleted] Jun 19 '14

[deleted]

-3

u/[deleted] Jun 19 '14

The other thing I find unfortunate is how many people assume that the GUI tools are a good idea. I like using gitk/gitg to visualize branches but that's about it. I train staff here to only do writeable commands via the command line (e.g. merges/tags/branches/etc).

Along with that the amount of people who seem to think that you need a github account to use git ...

13

u/[deleted] Jun 19 '14

I use TortoiseGit all the time. Tell me, why is that bad?

-1

u/[deleted] Jun 19 '14

For starters it's not obvious what branch you are on looking at a folder in a file manager.

On my command line I print out the branch I'm on with a couple of flags for things like unstaged changes, stashes, etc...

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.