Questions tagged [git]
is for Emacs support of Git, the distributed version control system. Emacs `version-control` feature supports many systems besides Git. Additional extensions, such as `Magit`, also provide extensive Git support. Therefore use additional tags besides `git` for Git related questions.
278 questions
1 vote
1 answer
91 views
Automatically adding Signed-off-by trailers to Git commits
I occasionally write Git commits for a project that requires all commits to carry a Signed-off-by trailer, to signal compliance with the Developer Certificate of Origin. I frequently forget to add ...
0 votes
0 answers
67 views
Not show Git branch name in modeline (Windows)
Given: Emacs 28.1 Windows 11 git version 2.47.1.windows.1 Here my init.el ;; https://github.com/Malabarba/smart-mode-line (use-package smart-mode-line :ensure t :config ;;(setq sml/theme 'light) ...
0 votes
2 answers
64 views
Adding automatic diffstat for last change to magit status buffer
I would like my Magit status buffer to display a diffstat of recent changes at the bottom. Ideally, this would be like the diffstat shown by git pull when the merge.stat option is true—a diffstat ...
0 votes
0 answers
86 views
vc-dir push : how to setup the gitconfig
I am using vc-dir for simple git tasks and I am happy with it but for the moment I still need to push outside of emacs and I would like to fix this. When I push (C-x v P), I get the following error: ...
0 votes
1 answer
58 views
`vc-revision-*` for deleted file
I sometimes want to look at the last version of a deleted file. Normally for a file that still exists in the repo, I cant do Ctrl+x v ~ (bound to vc-revision-other-window). But that has no mechanism ...
0 votes
1 answer
163 views
In Magit how can I see the difference a commit make to a file?
In Magit it is easy to see what difference a local file has compared to its checked-in version (HEAD). However once I received changes from others (via magit-pull), I would like to see what changes ...
0 votes
1 answer
90 views
File Buffer Auto Revert Mode Not Working When Buffer Mode Has Changed And Git Rebasing
Version Details: Emacs 28.2 On Debian 12 Steps to reproduce: I am editing Groovy files in a Git workspace. When I load the files they come up as fundamental so I switch to java-mode. All works as ...
3 votes
2 answers
108 views
Cannot commit parts of *vc-diff* on Microsoft Windows
Emacs has a beautiful feature: in the *vc-diff* buffer (generated by vc-diff either by C-x v = in a file buffer or by = in a *vc-dir* buffer), kill unwanted hunks with k (i.e., diff-hunk-kill) and ...