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.

6

u/[deleted] Jun 19 '14

Why are you using git?

For version control?

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

Huh? How do you figure? What does the number of copies have to do with it?

9

u/[deleted] Jun 19 '14

master and origin/master are not the same branch. That's why you can have commits on master that aren't on origin/master until you push it.

7

u/[deleted] Jun 19 '14

OK, super unnecessarily pedantic, but I concede that those are, technically, branches, even if that is not what anyone means by branch.

But you never answered my main question: what is wrong with TortoiseGit?

1

u/[deleted] Jun 19 '14

Aside from it being windows only?

As I said when you're looking at your files it's not obvious what branch you're on. On my command prompt (PS1 string) I display that. So as I navigate a project I know which branch I'm on at all times.

2

u/[deleted] Jun 19 '14

So you have no real complaints besides "lol gui console linux master race"?

3

u/[deleted] Jun 19 '14

I'd find it inconvenient. Just this morning I had to checkout a random commit, run a test (kinda like a bisect) and then see what changed between adjacent commits to see if I can suss out a bug.

From the command line that's all keyboard easy. From pointy-clicky you'd need to switch into some tree viewer, check out the commit, go back to the command prompt, run the tests, etc...

or I can do everything from a single xterm ...

2

u/MrDOS Jun 19 '14

I'd like to watch his mind break if someone showed him SourceTree.

-4

u/[deleted] Jun 19 '14

Exactly! You're scared of branches because you're scared of the command line.

If you were using the command line git, you would be using branches and you would be able to get more out of git.

7

u/[deleted] Jun 19 '14

What the flying fuck are you talking about? Mind not making up shit?