Hacker News new | ask | show | jobs
by Agentlien 2173 days ago
Another option, if you're using Vim, is to use Tim Pope's Git plugin, Fugitive[0]

[0] https://github.com/tpope/vim-fugitive

2 comments

And magit for the emacs folks.

They provide a conceptual framework for developer to orient and frame their actions with (sort of) right information density in the “native” $EDITOR environment.

I think VSCode has that git plugin which is very popular but I can’t remember the name - gives great git log/blame interface.

For me, personally, tig is the sweet spot. It shows me the output of "git status", I can select the files I want, and then commit them.

There is also lazygit, it's kind of similar, but different.

https://github.com/jonas/tig

What you describe sounds a lot like the :Git command of fugitive. I looked at tig and it does looks quite similar.

Another feature I really like with fugitive is :Ggrep which runs a git grep and returns the result in the quickfix list.