Status
Not open for further replies.

topham

Ars Legatus Legionis
13,756
Subscriptor
I'm looking for a good git guide and tool. I really want a good, graphical tool for handling git. It doesn't have to do everything, but it has to handle branching, tagging, patches and checkouts. (It doesn't need to be able to create new git repositories, or any of the more esoteric functionality.).

I really don't understand why SCM isn't handled better graphically. Anybody have experience with gitJungle? Anything like it? (I don't want to install it since it requires mono to run on the Mac, something native, or (ugh) java preferred.

(when Google gives advice I'll stop asking :)
 

MilleniX

Ars Tribunus Angusticlavius
8,138
Subscriptor++
Akula":16gmcu0j said:
WTH would you be OK with Java but not with Mono? Doesn't compute.
Because his Mac already has Java, and probably has some Java app running pretty regularly, and so won't notice additional memory usage from another JVM-based application. On the other hand, Mono would be a completely distinct runtime, with the heavy load that entails.
 

topham

Ars Legatus Legionis
13,756
Subscriptor
MilleniX":1gv5nva7 said:
Akula":1gv5nva7 said:
WTH would you be OK with Java but not with Mono? Doesn't compute.
Because his Mac already has Java, and probably has some Java app running pretty regularly, and so won't notice additional memory usage from another JVM-based application. On the other hand, Mono would be a completely distinct runtime, with the heavy load that entails.

Mostly this. My main computer is a MacbookPro CoreDuo from 2006 with a max of 2Gigs of ram, and a HD with under 10 gigs free.

As for a gui tool for git; I have this idea in my head how it should work and I'm hoping I find something approximating it. I've used SVN under Unix/Linux before and had it working on my laptop for a while. However the actual repository was on my PowerMac G5 that is currently sitting in the closet with nowhere to run. hence the switch to git.
 
No ones mentioned GitX? For shame.

Though since that's not been updated in a while you could check out Brotherbards version - Gitx is hosted on github and has many forks.

If your feeling especially adventurous laullons version is particularly advanced and is being updated daily. You'll need to compile that one yourself. It's pretty easy though.

I will add that these clients don't do it all and for some things you will have to fall back to the command line client to achieve what you want.
 
I like Tower a lot and it compares favorably with things like Cornerstone for SVN. But Xcode 4's built-in git support might be all you need. And I think you should learn the command line anyway; when you understand what is going on it isn't really any harder, and if you use a graphical tool without understanding what is about to happen you are in for a rough time.
 

ShuggyCoUk

Ars Legatus Legionis
10,387
Subscriptor++
when you understand what is going on it isn't really any harder

I confess to always cringing a little when. I read this sort of thing.

When I'm working there is almost always a hierarchy of files/directories with changes where I want to see individual changes on some of them. I just don't see how a command line tool can neatly deal with that scenario. Certainly I don't see how it can effectively display a revision graph for something as simple as an SVN like model, let alone the byzantine structures you can do with a DVCS.

Given that I am going to want to use such a tool to be clear *what* I am about to do to the repo/my working copy I fail to see a reason to then go and translate this into the CLI way to do it when the common case really should be just a click away.

Yes for things that are complex you're likely to need it as a fallback, and you should understand it but to say something isn't harder to do with the CLI just seems perverse when I think of some of the things I often do with SVN.
 

topham

Ars Legatus Legionis
13,756
Subscriptor
aeberbach":3ca7z3wj said:
I like Tower a lot and it compares favorably with things like Cornerstone for SVN. But Xcode 4's built-in git support might be all you need. And I think you should learn the command line anyway; when you understand what is going on it isn't really any harder, and if you use a graphical tool without understanding what is about to happen you are in for a rough time.


[redacted] integration of git is functional, not pretty.

I get the admonishments about cli/gui, except I don't have any issues using the cli. I don't know git particularly well, hence why I asked for tutorials or guides, which I'll be checking out soon; but I really want a nice graphical tool that shows which patches were applied and to what branch in a graphical manner. It makes far more sense at a glance, allowing me to manipulate it quickly and apply a patch between branches is a win. Having to determine the identifier for a particular patch and then apply it?

I don't have a problem learning the cli, I just don't want that to be my primary interface.

I tried out Tower and it looks kinda nice, but it had weird pauses and ran my fan up for 20-30 seconds while it was sorta hung for no apparent reason. That could get annoying. (Yes, I realize it's beta.)

I'll check out the gitX derivatives.
 

Jonathon

Ars Legatus Legionis
17,645
Subscriptor
topham":22welwf8 said:
I don't use eclipse often enough to want it integrated at this time, most development is in Xcode.
Not ready to switch to Xcode 4 yet? It adds git as one of its integrated SCM systems.

But, honestly, I'm going to reiterate what other people have already said: just learn how to use git at the command line. There's a reason why there aren't a ton of good git GUIs: git isn't that complicated once you get used to its basic workflow (which you have to do to use it in a GUI too).

Actually, there's a second reason why there aren't a ton of good git GUIs: git's API is atrocious/virtually nonexistent. But that's beside the point. :p

I get my repository visualization/browsing fix from github, for the most part (I've got a paid account that I use for private repos).

I'll second the Pro Git recommendation as far as books go... I also find Github's help pretty useful as a quick reference for basics (see the Everyday Git and Git Ninjutsu sections in the list on the right).
 

Jonathon

Ars Legatus Legionis
17,645
Subscriptor
There really isn't a good, complete graphical tool for git. It's partly inertia (pretty much everyone who uses git uses it at the command line, because that's how everyone uses it), and it's partly the poor API (it's hard to write a complete, stable git client: the library built along with git was only meant for git's internal consumption, so their only "official" way for other clients to interact with git is to parse command-line output).
 
I certainly don't suggest you're not a "Real Programmer" if you don't use command-line git. All I mean is that on one project last year I used git mainly on the command line because the available tools (GitX) didn't seem to add much to the experience. Now there are a nice GUI git tools like Tower and Xcode 4 I use them. But overall I don't feel that first project had more difficulty just because a tool up to the level of my usual SVN GUI (Cornerstone) wasn't available.
 

Grayrest

Ars Tribunus Militum
2,499
ShuggyCoUk":18eijd4b said:
When I'm working there is almost always a hierarchy of files/directories with changes where I want to see individual changes on some of them. I just don't see how a command line tool can neatly deal with that scenario. Certainly I don't see how it can effectively display a revision graph for something as simple as an SVN like model, let alone the byzantine structures you can do with a DVCS.
git_working.png

git_branching.png

Like that? I know you've made your preferences for graphical versions in several of these threads, but really it is just as easy from the command line if you're command line inclined. I do think a graphical client that would let you drag branches around to do git rebase-fu would be a usability win, since that's where most people shoot themselves in the foot, but I haven't come across any that actually do that.

edit: spoilerfied since the images break up the flow of the thread.
 

ShuggyCoUk

Ars Legatus Legionis
10,387
Subscriptor++
the command line tool is impressive but still:

* It truncates the check in comments (quite badly)
* I cannot easily select two points and diff between them
* For the life of me I cannot understand why anyone would voluntarily give up side by side diffs (even more so when decent tools allow you to manually align things when the computer isn't smart enough) compared to patch expressions. Clearly people do, I just can't understand it, perhaps it's a hardwired thing in our brains.
* what happens when you want to launch multiple different diffs at once (Do I have to start lots of individual cli instances and switch between them?)
* Not to mention IDE integration (so I can simply do something once rather than having to repeat myself to the IDE and the source control system)

Or are you excluding diff software from this and just considering the cli in so far as it lets you *get* to the diff?

Plainly there are people out there who prefer the CLI tools for common tasks as it will be faster than a few clicks and can be fine tuned to an incredible degree with scripting, both of these are always going to make the CLI ore powerful in that area. If you have to work over ssh than again, the CLI wins by dint of actually working. But to keep stating that they are _just as good_ as the gui tools just seems weird. The two are different, and thus have very different pros and cons. For any gui built around the underlying command line tools plainly the gui can only ever be a subset of the functionality (even if it is 100%), but fundamentally for *visualisations* (for me the most common operation I do on a VCS) a gui is plainly more powerful since it can do anything the CLI can do in regards to display, but do more of it (more pixels, different document models like tabs/MDI/non modal child windows, tool tips, toolbars, wider colour options, re-positionable elements, drag and drop, interactive region folding, etc)!


It may well be that none of the currently available git tools achieves this well enough, perhaps due to the lack of an API (who wants to write a tool that scrapes output, it's horrid work) perhaps those needs have now been covered by web based tools with fulling integrated index search (now there's something that useful when done right) so obviating the need for much else and that's a perfectly valid position.

I just feel the constant refrain of "use the cli, it's better" is like someone saying that "why bother with doom you've got nethack".
 

Grayrest

Ars Tribunus Militum
2,499
* It truncates the check in comments (quite badly)

If I really want to read them, I either make my terminal window wider or use a different output mode. I use this for displaying how the code is flowing and to jump to particular points by copy/pasting the short hashes, which is what you were asking about. This is also the most complex git tree I have on hand because I wanted to show how a complex tree looked. If your commits aren't double tagged by hudson the cutoff isn't that bad.

* I cannot easily select two points and diff between them

git diff c4e4bae..73663c4 is the syntax, you copy/paste the hashes. There are other ways to do it as well.

* For the life of me I cannot understand why anyone would voluntarily give up side by side diffs (even more so when decent tools allow you to manually align things when the computer isn't smart enough) compared to patch expressions. Clearly people do, I just can't understand it, perhaps it's a hardwired thing in our brains.

It depends what you're familiar with. For most things, I just want a quick look at which lines have changed. For resolving merge conflicts, I use a full screen vimdiff or diff3.

* what happens when you want to launch multiple different diffs at once (Do I have to start lots of individual cli instances and switch between them?)

If it's diffs across multiple files, the patch output is concatenated into less and I jump around by searching for the file/identifier I'm looking for. If it's a comparison between changesets, I open a new terminal tab and flip back and forth between them or use a graphical client depending on the complexity, but I can't remember the last time I wanted to compare diffs of changesets like this.

* Not to mention IDE integration (so I can simply do something once rather than having to repeat myself to the IDE and the source control system)

If you're using an IDE, it makes sense to use the IDE. I do Vim for everything but Java and my first step for working on something is to open up a terminal, navigate to the directory and fire up MacVim/gVim so this is pretty natural for me. I do make use of the fugitive vim plugin for tracing the history of a file or pulling lines from an old version to the current versions, but I really do use the command line as my IDE the majority of my time.

I'm not saying you should use the command line over a gui client. I'm just trying to show that using the cli version really isn't that bad...if you know what you're doing. The learning curve on complex cli apps always sucks.
 

erikengh

Ars Tribunus Militum
2,280
I've tried gitbox, gitx, giggle, ggit, cola etc. Actually I have lost track. In general most of them have a nicer looking interface than gitk and git gui, which are the tcl/tk GUI apps which come with git. However I mainly use gitk and git gui still because they are all too lacking in functionality. I have yet to find a feature rich nice looking git GUI application. Makes me almost want to try and write one myself.

I recommend looking past the looks of gitk and git gui. Once you just accept that you will find that they are quite practical and useful applications. At the moment I don't use just one app for git. I use a mix of the command line, gitk, gitx, cola and git gui.

Commit: git gui, cola, command line or gitx. I use command line for fairly small changes and GUI for larger ones, where I typically need to review them.
Branching: Creating and switching branches I mostly do in gitk. Also reseting branches, creating tags etc.
Push/pull: mainly on command line.
 

THBMan

Ars Legatus Legionis
18,256
Subscriptor
* I cannot easily select two points and diff between them
You mean you just want to click two hashes in the log and select "diff"? It's nearly that easy on the command line. Pick which two you want and "git diff SHA1..SHA2". You can use any "treeish" (commit identifier) for this, e.g. "git diff other_branch..HEAD" You can use commit hashes, branch names, tags. You may just have to find them in the log and copy/paste if you want to diff specific revisions.

* For the life of me I cannot understand why anyone would voluntarily give up side by side diffs (even more so when decent tools allow you to manually align things when the computer isn't smart enough) compared to patch expressions. Clearly people do, I just can't understand it, perhaps it's a hardwired thing in our brains.
So use vimdiff

Not to dissuade you from your course, but it's certainly possible to do all this stuff in a terminal.

for me the most common operation I do on a VCS
Is it, really? The time I spent manipulating my repository is usually adding, committing, pushing, pulling, and occasionally rebasing. I don't have to look at the history, or individual commits, very often. Are you programming or managing/gatekeeping?
 

ShuggyCoUk

Ars Legatus Legionis
10,387
Subscriptor++
Programming, but a lot of that is working out what changed and debugging (often to tease out intent from changes without decent commit logs)

The most common *operation* I do is update, but that is almost always quick, merging doesn't tend to be complex on my stream (it either just works or it's utterly horrid at which point a decent diff tool is required either way).

Committing is pretty trivial since almost all dev is done on trunk and I link almost everything to a jira so documenting intent is easy (and searching becomes very easy, even if they did massively degrade the utility of fisheye when they upgraded it to be all ajax'y

If I'm spending time in the source system it's via fisheye, or a revision graph if I need to 'bounce around' a bit more or I'll be doing quite a few diffs (I'd love it if I could jump to a diff in the tool of my choice from fisheye). I actually find the revision graph in SVN a bit cumbersome, strangely the less powerful one in cvs was more useful, but the log viewer is also much better.

I spend much more time actually coding, but when I'm interacting with source it's diffs, or finding the thing to diff...

Anything common is just scripted away (calling it scripting is actually a bit over blown in most cases, aliases cover most of it) so it takes no time.
 
Status
Not open for further replies.