Is anyone else getting tired of seeing all these "git tips", "cheatsheets", and "helpers" on here? While these all may look cool and be flashy, I've never used a single one that's showed up on the front page. Personally, I find the man pages + Google to be good enough. Then again, maybe I'm a curmudgeon.
Wow, this is actually good use of visualization. I clicked through expecting a one pager. Instead, I got an interactive cheatsheet showing how the commands interact across different repos, indices, and workspaces.
A plug to my cheatsheet, it is just a repo in github: <a href="https://github.com/trufa/git-cheatsheet" rel="nofollow">https://github.com/trufa/git-cheatsheet</a><p>I try to link to the relevant StackOverflow explanation-<p>I'm adding new stuff every now and then. This weekend I'll organize it and add some obvious stuff that is missing and publish it to HN.<p>I honestly find it more useful that most of the cheat sheets, specially those images with a couple of commands written on it.<p>Please feel free to collaborate pull requests and or issues are greatly appreciated.
I just gave up and use SourceTree. I don't like git's syntax at all, but have to work with it, so a nice GUI works best for me. Maybe I'm getting old, or maybe I just prefer a better designed command line interface (for my personal projects I'm using Fossil and am quite happy with the command line there.)
My awkward git use case: while working on a branch, I frequently want to merge changes from the (upstream, remote) master into my branch. Is there a faster way to do this than switch to master, pull, switch back, merge master?
<a href="https://github.com/ndp/git-cheatsheet" rel="nofollow">https://github.com/ndp/git-cheatsheet</a><p>Site seems down. Just clone this repo and open git-cheatsheet.html in your browser.
I once again want to remind people of tig[1]. While there are plugins like gitv that do similar things, i prefer tig.<p>You can set custom hotkeys in your tigrc (which are context sensitive). For example:<p><pre><code> bind generic F !git fetch
bind main ! !git revert %(commit)
bind main c !git checkout %(commit)
</code></pre>
[1]<a href="http://jonas.nitro.dk/tig/" rel="nofollow">http://jonas.nitro.dk/tig/</a>
I really like this because it shows the different 'places' things happen in Git arranged spatially, and groups commands into those spaces. This really helps with building mental model of how things work.<p>The visualization is great and a lot of fun but I would also like to have a non-interactive version for quick paper-based reference.
Great visualization. It actually shows how messy is git command line interface. Just looking at a cmd syntax it is hard to guess if the cmd refers to workspace, index or local repository.
This is pretty neat, but I find it pretty annoying that my eyes have to keep shifting up and down to read the explanation for each command. It would be nice if the explanation text popped up closer to where my eyes are already focused.