Live data from Hacker News

Magit, the magical Git interface (2017)

emacsair.me

201–210 of 357 posts

Re: Magit, the magical Git interface (2017)

#201
https://invincivlepvt.com/logo-designing-jalandhar/" rel="nofollow">Logo Designing Punjab https://invincivlepvt.com/logo-designing-jalandhar/" rel="nofollow">Best Logo Designer https://invincivlepvt.com/logo-designing-jalandhar/“ rel="nofollow">Logo Designing jalandhar https://invincivlepvt.com/logo-designing-jalandhar/" rel="nofollow">Logo Designer Jalandhar https://invincivlepvt.com/logo-designing-jalandhar/" rel="nofollow">Best Logo Designer Punjab https://invincivlepvt.com/logo-designing-jalandhar/" rel="nofollow">Logo Designing Punjab https://invincivlepvt.com/logo-designing-jalandhar/" rel="nofollow">Best Logo Designer Jalandhar

https://invincivlepvt.com/poster-designing-jalandhar-2/“ rel="nofollow">Poster Designing Punjab

https://invincivlepvt.com/poster-designing-jalandhar-2/" rel="nofollow">Best Poster Designer

https://invincivlepvt.com/poster-designing-jalandhar-2/" rel="nofollow">Poster Designing jalandhar

https://invincivlepvt.com/poster-designing-jalandhar-2/" rel="nofollow">Poster Designer Jalandhar

https://invincivlepvt.com/poster-designing-jalandhar-2/" rel="nofollow">Best Poster Designer Punjab

https://invincivlepvt.com/poster-designing-jalandhar-2/" rel="nofollow">Poster Designing Punjab

https://invincivlepvt.com/poster-designing-jalandhar-2/" rel="nofollow">Best Poster Designer Jalandhar

https://invincivlepvt.com/banner-designing-jalandhar-2/“ rel="nofollow">Banner Designing Punjab

https://invincivlepvt.com/banner-designing-jalandhar-2/" rel="nofollow">Best Banner Designer

https://invincivlepvt.com/banner-designing-jalandhar-2/" rel="nofollow">Banner Designing jalandhar

https://invincivlepvt.com/banner-designing-jalandhar-2/" rel="nofollow">Banner Designer Jalandhar

https://invincivlepvt.com/banner-designing-jalandhar-2/" rel="nofollow">Best Banner Designer Punjab

https://invincivlepvt.com/banner-designing-jalandhar-2/" rel="nofollow">Banner Designing Punjab

https://invincivlepvt.com/banner-designing-jalandhar-2/" rel="nofollow">Best Banner Designer Jalandhar

https://invincivlepvt.com/business-card-designing-jalandhar-... rel="nofollow">Business Card Designing Punjab

https://invincivlepvt.com/business-card-designing-jalandhar-..." rel="nofollow">Best Business Card Designer

https://invincivlepvt.com/business-card-designing-jalandhar-..." rel="nofollow">Business Card Designing jalandhar

https://invincivlepvt.com/business-card-designing-jalandhar-..." rel="nofollow">Business Card Designer Jalandhar

https://invincivlepvt.com/business-card-designing-jalandhar-..." rel="nofollow">Best Business Card Designer Punjab

https://invincivlepvt.com/business-card-designing-jalandhar-..." rel="nofollow">Business Card Designing Punjab

https://invincivlepvt.com/business-card-designing-jalandhar-..." rel="nofollow">Best Business Card Jalandhar

https://invincivlepvt.com/business-card-designing-jalandhar-... rel="nofollow"> Visiting Card Designing Punjab

https://invincivlepvt.com/business-card-designing-jalandhar-..." rel="nofollow">Best Business Card Designer

https://invincivlepvt.com/business-card-designing-jalandhar-..." rel="nofollow">Visiting Card Designing jalandhar

https://invincivlepvt.com/business-card-designing-jalandhar-..." rel="nofollow">Visiting Card Designer Jalandhar

https://invincivlepvt.com/business-card-designing-jalandhar-..." rel="nofollow">Best Visiting Card Designer Punjab

https://invincivlepvt.com/business-card-designing-jalandhar-..." rel="nofollow">Visiting Card Designing Punjab

https://invincivlepvt.com/business-card-designing-jalandhar-..." rel="nofollow">Best Visiting Card Jalandhar

Webdesign

https://invincivlepvt.com/website-designing-jalandhar-2/" rel="nofollow">Best Web Designing Jalandhar https://invincivlepvt.com/website-designing-jalandhar-2/" rel="nofollow">Best Web Designer Jalandhar https://invincivlepvt.com/website-designing-jalandhar-2/" rel="nofollow">Best Website Designing Jalandhar https://invincivlepvt.com/website-designing-jalandhar-2/" rel="nofollow">Best Website Designer Jalandhar https://invincivlepvt.com/website-designing-jalandhar-2/" rel="nofollow">Best Website Designing https://invincivlepvt.com/website-designing-jalandhar-2/" rel="nofollow">Best Web Designing https://invincivlepvt.com/website-designing-jalandhar-2/" rel="nofollow">Best Website Designer https://invincivlepvt.com/website-designing-jalandhar-2/" rel="nofollow">Best Web Designer https://invincivlepvt.com/website-designing-jalandhar-2/" rel="nofollow">Best Web Designing agency jalandhar https://invincivlepvt.com/website-designing-jalandhar-2/" rel="nofollow">Best Website Designing agency jalandhar https://invincivlepvt.com/website-designing-jalandhar-2/" rel="nofollow">Web Designer https://invincivlepvt.com/website-designing-jalandhar-2/" rel="nofollow">Website Designer

Webdevelopment

https://invincivlepvt.com/website-development-jalandhar/" rel="nofollow">Best Website Development Jalandhar https://invincivlepvt.com/website-development-jalandhar/" rel="nofollow">Best Web Development Jalandhar https://invincivlepvt.com/website-development-jalandhar/" rel="nofollow">Best Web Development https://invincivlepvt.com/website-development-jalandhar/" rel="nofollow">Best Website Development https://invincivlepvt.com/website-development-jalandhar/" rel="nofollow">Best Web Development agency Jalandhar https://invincivlepvt.com/website-development-jalandhar/" rel="nofollow">Best Website Development agency Jalandhar https://invincivlepvt.com/website-development-jalandhar/" rel="nofollow">Best Website Developer Jalandhar https://invincivlepvt.com/website-development-jalandhar/" rel="nofollow">Best Web Developer Jalandhar https://invincivlepvt.com/website-development-jalandhar/" rel="nofollow">Best Website Developer Punjab https://invincivlepvt.com/website-development-jalandhar/" rel="nofollow">Best Web Developer Punjab https://invincivlepvt.com/website-development-jalandhar/" rel="nofollow">Website Developer https://invincivlepvt.com/website-development-jalandhar/" rel="nofollow">Web Developer

Home

https://invincivlepvt.com/" rel="nofollow">Graphic Designing https://invincivlepvt.com/" rel="nofollow">Digital Marketing https://invincivlepvt.com/" rel="nofollow">Digital Marketing Jalandhar https://invincivlepvt.com/" rel="nofollow">Graphic Designing Jalandhar https://invincivlepvt.com/" rel="nofollow">Digital Marketing Punjab https://invincivlepvt.com/" rel="nofollow">Website Designing Punjab https://invincivlepvt.com/" rel="nofollow">Website Development Punjab https://invincivlepvt.com/" rel="nofollow">Website Designing Jalandhar https://invincivlepvt.com/" rel="nofollow">Website Designing Jalandhar https://invincivlepvt.com/" rel="nofollow">Website Development Jalandhar https://invincivlepvt.com/" rel="nofollow">Website Designing https://invincivlepvt.com/" rel="nofollow">Website Development https://invincivlepvt.com/" rel="nofollow">Graphic Designing Agency jalandhar https://invincivlepvt.com/" rel="nofollow">Graphic Designing Company jalandhar https://invincivlepvt.com/" rel="nofollow">Digital marketing Company jalandhar https://invincivlepvt.com/" rel="nofollow">Digital marketing Agency jalandhar https://invincivlepvt.com/" rel="nofollow">Graphic Designing Agency Punjab https://invincivlepvt.com/" rel="nofollow">Graphic Designing Company Punjab https://invincivlepvt.com/" rel="nofollow">Website Designing company jalandhar https://invincivlepvt.com/" rel="nofollow">Website Designing company Punjab https://invincivlepvt.com/" rel="nofollow"> Website Development company Punjab https://invincivlepvt.com/" rel="nofollow">Website Development company Jalandhar

https://invincivlepvt.com/youtube-marketing-jalandhar/" rel="nofollow">Youtube Marketing Punjab https://invincivlepvt.com/youtube-marketing-jalandhar/" rel="nofollow">Youtube Marketing Jalandhar https://invincivlepvt.com/youtube-marketing-jalandhar/" rel="nofollow">Youtube Marketing https://invincivlepvt.com/youtube-marketing-jalandhar/" rel="nofollow">Video Marketing Punjab https://invincivlepvt.com/youtube-marketing-jalandhar/" rel="nofollow">Video Marketing Jalandhar https://invincivlepvt.com/youtube-marketing-jalandhar/" rel="nofollow">Digital Marketing Punjab https://invincivlepvt.com/youtube-marketing-jalandhar/" rel="nofollow">Digital Marketing Jalandhar

Re: Magit, the magical Git interface (2017)

#202

Seeing a co-worker use magic inspired me to try out fugitive on the vim side and I'm actually blown away. So it's excellent in more ways than one. Also inspired me to try out Emacs but that's a longer story

I'm surprised that I had to scroll this far down to find mention of fugitive. I haven't ever used magit but I use fugitive every single day and absolutely love it.

Re: Magit, the magical Git interface (2017)

#203
post #95

Earlier quoted context omitted.

> but rather around being selective about crafting self-consistent but single-theme revisions Actually, I think git's got Magit beat on that. Magit might make it easier to stage specific lines, but git can stage specific parts of lines or even changes that are completely different than what's on the worktree, through the editing of diffs with `git add -p`'s `e` option.

Magit has great support for staging parts of lines - select the section you want to stage and press 's'.

> Magit has great support for staging parts of lines

This is news to me.

> select the section you want to stage and press 's'.

It stages line-wise for me. How do I get it to stage less than an entire line?

Re: Magit, the magical Git interface (2017)

#204
post #162
post #144

Earlier quoted context omitted.

Why would I use magit over the git CLI? 1. Discoverability. It'll display the contextually relevant options and commands at most points. By using magit, you're learning the git CLI commands at the same time, including commands that you'd normally never come across without a comprehensive read of the manual or release notes. 2. Fewer keypresses. Also, extra shortcuts for some common operations. 3. The bits that CLIs a…

I think (2) is why I use it, it's just much faster. It doesn't let you skip over understanding Git, it just makes you work faster. I also think that the experiences of: * looking into a stash and applying only selected changes from it, * browsing all your changes and staging only some of them, * quickly killing changes that you simply want to drop, e.g. not commit and remove from your edits are much slower when using…

I tend to avoid using stash in that fine grained way because branches are cheap in git, and you get a rich set of operations using a local branch to stack up unorganized code changes. Rely on stash on only very quick setting aside of work then returning to it. If I stash and find it needs to live longer than that - I’ll stuff it into a named branch.

Re: Magit, the magical Git interface (2017)

#205

Earlier quoted context omitted.

> Explained in man git-revert If git at least had good man pages. The man-page's description is "Given one or more existing commits, revert the changes that the related patches introduce, and record some new commits that record them." [1] I have a hard time parsing that to mean what it's supposed to mean. It contains a note that's much better at explaining what git revert does, then goes on to explain alternatives fo…

“ I have a hard time parsing that to mean what it's supposed to mean.” Can’t disagree. That part could certainly be written better. I’m not saying I would want to learn Git from the man pages, but they’re pretty good in general after learning it elsewhere.

They are decent for reference, and some are genuinely great (like git-everyday [1] or git rebase [2]). But just as often as they are helpful they just leave me scratching my head, either because they are too deep in git-lingo or because they forget to clarify some crucial details

1: https://git-scm.com/docs/giteveryday

2: https://git-scm.com/docs/git-rebase

Re: Magit, the magical Git interface (2017)

#206

Earlier quoted context omitted.

Just to clarify, does emacs/magit really pop up when you run "git rebase -i" on the command line? I haven't experienced this, but maybe that's because my EDITOR env var is set to "vim". I would find that very annoying. I like magit, but I never figured out the rebase flow with it, so I just do that on the command line. Where magit really shines for me is being able to stage and unstage hunks of code very easily. Look…

> Just to clarify, does emacs/magit really pop up when you run "git rebase -i" on the command line? I haven't experienced this, but maybe that's because my EDITOR env var is set to "vim". It would only pop up from running `git rebase -i` (or whatever) if your $EDITOR is set to emacs. I'm a heavy emacs/magit user, and even I find the idea of setting my $EDITOR to `emacs` abhorrent.

I have a systemd user emacs service running and set my EDITOR is set to emacsclient so it is really snappy.

Re: Magit, the magical Git interface (2017)

#207

Earlier quoted context omitted.

> stash some of my changes, switch branch, cherry pick a commit, switch branch, do an interactive rebase reordering commits and dropping one, pop one of my stashes > working with code becomes a fluent experience, rather than fighting with your tools I also do this regularly, but on my terminal. I don't feel like I'm fighting the git tools. Is this a common experience? I enjoy using git GUIs as well, especially for vi…

What I dislike with git terminal UI is that commands reflect the innards of git, not what the user wants to do. It also forces a deeper understanding of the innards for basic commands than ought to be necessary. Examples where undoing an operation looks totally different to doing it: - To stage a change you `add` it, to unstage you `reset HEAD` - To commit you `commit`, to undo a commit you `reset --hard HEAD^` The l…

Reset is a powerful command that happens to work for the “uncommit” use case. I use reset for a completely different use case: my CI system watches a specific branch for changes and when they occur builds it with a specific configuration. If I reset-push a branch, I get a build of that branch with that configuration.

Re: Magit, the magical Git interface (2017)

#208

Earlier quoted context omitted.

Using git for so long is almost certainly what’s up - you not only know all the various commands but “grew up” with git so you didn’t get them all in a rush. Many many people use git as cvs and are confused once it goes past “commit and push”. I know I don't really know what to do if someone pushed to master whilst I was working and it complains. Usually I just make a new checkout and merge in by hand.

I knew git at a deep level before picking up magit and I can’t disagree more with how you paint magit. Magit is the one and only git GUI that actually aligns with the git CLI and doesn’t present git as just another VCS like perforce. I know immediately what magit is going to actually do when I use it. I could easily do everything in the terminal but I don’t because magit lets me do things so much faster and with fewe…

Perhaps I misread both of you, but I think you are in agreement actually
Post reply on HN