# \#git

**URL:** https://discuss.kakoune.com/tag/git/10.md

[Latest](https://discuss.kakoune.com/latest.md) · [Categories](https://discuss.kakoune.com/categories.md) · [Tags](https://discuss.kakoune.com/tags.md)

---

## [Asynchronous git diff highlighter updating](https://discuss.kakoune.com/t/asynchronous-git-diff-highlighter-updating/2660)

<div class="topic-metadata">

**Author:** [@evannjohnson](https://discuss.kakoune.com/u/evannjohnson)\
**Replies:** 0\
**Last updated:** [March 18, 2025, 6:24pm UTC](https://discuss.kakoune.com/t/asynchronous-git-diff-highlighter-updating/2660 "2025-03-18T18:24:29Z")

</div>

The implementation of the git-diff highlighter (a.k.a. git gutter) in git.kak is good, but putting git update-diff on a NormalIdle hook, so that the gutter stays up to date as the buffer is edited, can make the editor sl…

---

## [Atomic commits in kakoune?](https://discuss.kakoune.com/t/atomic-commits-in-kakoune/1446)

<div class="topic-metadata">

**Author:** [@jssee](https://discuss.kakoune.com/u/jssee)\
**Replies:** 9\
**Last updated:** [October 22, 2023, 11:14pm UTC](https://discuss.kakoune.com/t/atomic-commits-in-kakoune/1446 "2023-10-22T23:14:11Z")

</div>

When working with git, I always try to keep my commits as atomic as possible. This means I rely heavily on tig to make stage changes in hunks/lines instead of staging entire files at a time. Is there a way to achieve thi…

---

## [Quick way resolve git conflict when merging?](https://discuss.kakoune.com/t/quick-way-resolve-git-conflict-when-merging/1519)

<div class="topic-metadata">

**Author:** [@scr](https://discuss.kakoune.com/u/scr)\
**Replies:** 7\
**Last updated:** [April 28, 2022, 8:15pm UTC](https://discuss.kakoune.com/t/quick-way-resolve-git-conflict-when-merging/1519 "2022-04-28T20:15:14Z")

</div>

Hi ! Anyone has a good hack to quickly resolve conflict when merging git branches ?

---

## [Pull Gerrit comments](https://discuss.kakoune.com/t/pull-gerrit-comments/1012)

<div class="topic-metadata">

**Author:** [@TeddyDD](https://discuss.kakoune.com/u/TeddyDD)\
**Replies:** 1\
**Last updated:** [October 13, 2020, 6:17pm UTC](https://discuss.kakoune.com/t/pull-gerrit-comments/1012 "2020-10-13T18:17:30Z")

</div>

Hacked in few minutes to get grep-like buffer with comments from Gerrit review. Works only if cwd is repo root and you have change id in commit. There is a lot of room for improvement but I don’t really care about Gerrit…

---

## [Enable git update-diff automatically](https://discuss.kakoune.com/t/enable-git-update-diff-automatically/1252)

<div class="topic-metadata">

**Author:** [@gustavo-hms](https://discuss.kakoune.com/u/gustavo-hms)\
**Replies:** 3\
**Last updated:** [September 8, 2020, 5:23pm UTC](https://discuss.kakoune.com/t/enable-git-update-diff-automatically/1252 "2020-09-08T17:23:53Z")

</div>

Hi! Could someone help me configuring Kakoune to automatically run git show-diff and git update-diff on file opening and updates? I tried with hook global BufOpenFile .\* %{ git show-diff } hook global BufWritePost .\* %…

---

## [Git commands -\> posix compliant scripts from author 'Vincent Driessen' and Friends](https://discuss.kakoune.com/t/git-commands-posix-compliant-scripts-from-author-vincent-driessen-and-friends/961)

<div class="topic-metadata">

**Author:** [@duncan](https://discuss.kakoune.com/u/duncan)\
**Replies:** 0\
**Last updated:** [April 16, 2020, 5:43am UTC](https://discuss.kakoune.com/t/git-commands-posix-compliant-scripts-from-author-vincent-driessen-and-friends/961 "2020-04-16T05:43:35Z")

</div>

What a legend: https://github.com/nvie/git-toolbelt Just one example file from the many that are available at nvies’ public repo: Blog post: https://nvie.com/posts/git-power-tools/ Scripts are all from the named au…

---

## [RFR: Roll back through old versions of a file in git](https://discuss.kakoune.com/t/rfr-roll-back-through-old-versions-of-a-file-in-git/743)

<div class="topic-metadata">

**Author:** [@robertmeta](https://discuss.kakoune.com/u/robertmeta)\
**Replies:** 8\
**Last updated:** [February 2, 2020, 7:25am UTC](https://discuss.kakoune.com/t/rfr-roll-back-through-old-versions-of-a-file-in-git/743 "2020-02-02T07:25:18Z")

</div>

A feature I really like in some other editors is the ability to roll through old versions of a file 1 by 1. Trying to consider the best way to do that in Kakoune.

---

## [How can I map \`git next-hunk\` to a key?](https://discuss.kakoune.com/t/how-can-i-map-git-next-hunk-to-a-key/823)

<div class="topic-metadata">

**Author:** [@brianhicks](https://discuss.kakoune.com/u/brianhicks)\
**Replies:** 3\
**Last updated:** [December 26, 2019, 4:24pm UTC](https://discuss.kakoune.com/t/how-can-i-map-git-next-hunk-to-a-key/823 "2019-12-26T16:24:45Z")

</div>

I’d like to git gd to jump to the next diff. I imagine I could do something like this: map global goto d ': git next-hunk\<ret\>\` But that doesn’t seem to work. I just get an error that says “No search pattern”. When I t…

---

## [Editing git commit messages with a kakoune client](https://discuss.kakoune.com/t/editing-git-commit-messages-with-a-kakoune-client/610)

<div class="topic-metadata">

**Author:** [@robx](https://discuss.kakoune.com/u/robx)\
**Replies:** 7\
**Last updated:** [June 15, 2019, 4:04am UTC](https://discuss.kakoune.com/t/editing-git-commit-messages-with-a-kakoune-client/610 "2019-06-15T04:04:47Z")

</div>

I’m trying to use kak as my default editor. Since it’s too slow to start-up otherwise, I’m running kak -s ses -d, and set EDITOR="kak -c ses". Startup time is ok like this, but, counter-intuitively (to me), leaving a cli…

---

## [Running tig?](https://discuss.kakoune.com/t/running-tig/144)

<div class="topic-metadata">

**Author:** [@robertmeta](https://discuss.kakoune.com/u/robertmeta)\
**Replies:** 14\
**Last updated:** [February 3, 2019, 8:15pm UTC](https://discuss.kakoune.com/t/running-tig/144 "2019-02-03T20:15:51Z")

</div>

I am trying to puzzle out the best way to use tig with kakoune, currently I tend to drop out of kakoune and run tig. Better ways?
