Skip to main content

Questions tagged [magit]

is an Emacs extension for the Git version control system.

36 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
3 votes
0 answers
480 views

Setup Magit Forge to connect Gitlab

I am using a Gitlab, say gitlab.company.org. My username on that machine is user and I am using 2FA. I have read the Forge User and Developer Manual. It asked to read and follow the instructions of ...
Jan's user avatar
  • 383
3 votes
0 answers
117 views

how to teach magit to pass multiple push-options at once

GitLab has a few push options for which I'd like to create switches in magit-push's transient. Causing -n to add -oci.skip is simple enough: (transient-append-suffix 'magit-push "-n" '("...
adl's user avatar
  • 153
2 votes
1 answer
46 views

magit search in buffer, only file names, not contents?

If I run M-x magit I see a big list of staged and unstaged file paths. I want to search through the list of file names, using my usual Emacs command of C-s (isearch-forward). But in this magit buffer ...
Rob N's user avatar
  • 691
2 votes
1 answer
147 views

Hide "^L" in magit log buffer

How can I configure the display in the magit buffer so that "^L^L^L" is rendered as a white space? On other platforms, I'm used to seeing entries separated by whitespaces magit 20230924....
José's user avatar
  • 123
2 votes
1 answer
200 views

Magit error: Wrong type argument: listp

I recently updated magit and since then I haven't been able to create commits with it. When I try to create a commit in the magit-status interface, I get the error: command-execute: Wrong type ...
burek's user avatar
  • 35
2 votes
1 answer
42 views

Can the Magit Forge issue list filter by assignee? Or display assignees?

I'd like to get Magit Forge to show me just the issues that are assigned to me. Or else display the assignees. How can this be done?
Norman Ramsey's user avatar
2 votes
0 answers
28 views

pressing enter in the magit "git log", can the commit be shown in the full height of the screen instead of a half screen?

When I press RET in the magit "git log", can the commit be shown in the full height of the screen instead of a half screen? RET runs the command magit-show-commit (found in magit-commit-...
american-ninja-warrior's user avatar
2 votes
0 answers
585 views

Magit is unbearably slow on WSL2

I'm running magit in a medium-small project, on WSL2 through xming on windows 10. The startup time for magit is in the high tens of seconds, and so is every other action. This is not the case in the ...
Jonathan Sahar's user avatar
2 votes
0 answers
34 views

Does magit-log-mode support selecting commits?

Is there the concept of selection with magit-log mode? Is there some way to tag and operate on multiple commits for example? Note that I'm developing a package that could use the concept of selected ...
ideasman42's user avatar
  • 9,027
2 votes
0 answers
71 views

APIs to create a custom issue list on Magit Forge?

Using Magit Forge, I'd like to organize a list of open issues by assignee. Ideally I'd like to display them in groups by assignee, but I'd settle for a single list if the assignee were added to the ...
Norman Ramsey's user avatar
2 votes
0 answers
370 views

How to reset/undo changes in folder using Magit

I'm looking for a way to undo changes in selected directory, analogue of git checkout [folder-path] in Magit. I found that I can reset changes of specific file to selected branch by typing X f in ...
Navidot's user avatar
  • 782
1 vote
1 answer
41 views

Can I see Pull Request comments in Emacs using Magit and Forge?

I am still pretty new to using Magit and Forge in emacs, but I have not found an answer to this question in the docs or videos. Here is the situation. So I have a draft pull request submitted on ...
krishnab's user avatar
  • 529
1 vote
0 answers
94 views

Unknown fix for error: cl--generic-build-combined-method: Cyclic definition: %S: loadhist-unload-element

I'm using emacs 27.2 and magit version 20231109.935. When I'm inside a directory and try to run magit-status or magit-init I get the error message in the title: cl--generic-build-combined-method: ...
bashfuloctopus's user avatar
1 vote
1 answer
39 views

How can I make magit aware of an upstream branch?

I have a preexisting (github) repository with 2 branches: master and release. I successfully set my own local copy of the master branch to origin/master but when I try to set the release branch (using ...
user39350's user avatar
1 vote
1 answer
63 views

Magit doesn't show diff highlighting until hunk is active

I recently started encountering a new issue, and I'm not sure why. When opening a Magit status buffer, the diff highlighting doesn't appear until I select a hunk, in which case it appears for just ...
micahbf's user avatar
  • 111
1 vote
1 answer
89 views

How to hide tag in `magit-log`

Please see the screenshot of my magit-log-branches: I encounter some projects has lots of tags on each commits, and this situation cause each lines in magit-log tooooooooooooooo long and the magit-...
kuanyui's user avatar
  • 1,040
1 vote
0 answers
49 views

Insert a magit-section without refreshing the buffer

I'm experimenting with magit-section as the UI library for an Emacs package. Without going into too much detail, this package interfaces with a websocket and displays the data it receives as an ...
dandy's user avatar
  • 13
1 vote
0 answers
163 views

Magit ediff range in a pretty way?

I need to investigate a project, with a patch made by a former student of my university. He made a series of commits on a repo, and I need to see what additions he made. I got the list of files ...
Alessandro Bertulli's user avatar
0 votes
1 answer
39 views

Weird files created with names like #855802604d9cc05c0e85b4d1e08f1bc8d72940a3#

I've been using doom emacs and magit along with tramp, and I noticed that copies of the files in the repo have been created in the same folder where the original files are, and they have these weird ...
pgaluzio's user avatar
0 votes
0 answers
38 views

magit: How to suppress Tags section in magit-refs of a single repository

I am using a git-repo that has 800+ tags: It takes about 15 seconds for the magit-refs buffer to refresh which is too long for me. I tried (remove-hook 'magit-refs-sections-hook 'magit-insert-tags) ...
Adrian Pronk's user avatar
0 votes
0 answers
57 views

How to open emacs magit on a specific bare repo from the command line?

I'm trying to switch over from neovim. I use this alias to open vimagit on my config bare repo: alias configit=GIT_DIR=$HOME/.cfg GIT_WORK_TREE=$HOME nvim -c MagitOnly. I use this command when I ...
Tony's user avatar
  • 1
0 votes
0 answers
24 views

Branch descriptions in the magit references buffer

It would be convenient (for my workflow) to have the "references" (y) buffer display branch descriptions (as in git-branch --edit-description) instead of the latest commits titles. Is there ...
Yury Kudryashov's user avatar
0 votes
0 answers
26 views

Two pushurl failed with `magit-push-current-to-upstream`

I have two pushurls, say owner1 and owner2, set to a remote. $ git remote -v origin https://github.com/owner1/repo (fetch) origin https://github.com/owner1/repo (push) origin https://github.com/...
Yasushi Shoji's user avatar
0 votes
0 answers
73 views

Unable to commit in Magit in a repo on an NTFS filesystem

My situation is similar to this question: I have a git repository on an NTFS volume mounted on Linux (Ubuntu). Using Magit I am able to see status, stage and unstage, but committing doesn't work and ...
Josh Friedlander's user avatar
0 votes
0 answers
39 views

Getting Magit to Show Word Count Diff

I'm aware that by setting (setq magit-diff-refine-hunk 'all) we can get magit to show the words added/changed: Question: Is there a way to force the display the total number of words added, total ...
George's user avatar
  • 939
0 votes
0 answers
212 views

Magit cannot commit. emacsclient on PATH. Pop! OS

magit-status sees the repo just fine, and I can even push to Github, or make a branch. I can also commit through the git cli no problem. However, before I can even write my commit message on magit I ...
vtrincado.h's user avatar
0 votes
0 answers
317 views

Run pre-commit hooks when using magit, poetry, and tramp

This is an emacs & magit version of the following question, with an added twist. https://stackoverflow.com/questions/72839263/access-python-interpreter-in-vscode-version-controll-when-using-pre-...
q.undertow's user avatar
0 votes
0 answers
118 views

Pushing a gitlab release

Is there a way to push via Magit, so that the push will automatically produce a release in GitLab? For example: I prepare my files, open the Magit status buffer, stage the file via s, commit the file ...
Jan's user avatar
  • 383
0 votes
0 answers
162 views

Close all open Magit buffers when opening a new project

When using Magit, the multitude of buffers can become a bit confusing when switching buffers. Therefore I prefer to have only one git-repository open in Magit. My current procedure of switching to ...
Harald's user avatar
  • 328
0 votes
1 answer
39 views

Using with-editor and custom key bindings

I am trying to use the with-editor package with the kubectl edit command in the kubernetes-el package. I proposed a patch for the same. I am trying to understand how to create custom key bindings like ...
noorul's user avatar
  • 241
0 votes
1 answer
1k views

Add remote from magit for new repo

When creating a repo on a git server and wanting to push your existing local repo for the first time, how do I set the remote? M a seems to not like me inputting the url, or a name like "origin&...
mcp's user avatar
  • 556
0 votes
0 answers
64 views

Duplicate headlines in org mode in CentOS

CentOS 7 Emacs 27.1 Magit Here my folder with org mode files: I open current.to.do.org and it success open. As you can see the first headline is ANDROID and last headline is TESTING. Nice. Now I ...
a_subscriber's user avatar
  • 4,204
0 votes
0 answers
92 views

Remove stale buffers after switching to a different branch

This is the scenario: Switch to a new git branch Open some "new files" in that branch Switch back to an older branch that doesn't have these "new files" I want these opened ...
SFbay007's user avatar
  • 584
0 votes
1 answer
84 views

How to git stage a just-tangled file in `org-babel-post-tangle-hook`

I want to create a org-babel-post-tangle-hook that does a git stage buffer-file-name. There is a boring technical issue I have, which is that I don't know how to call magit-stage-file from elisp so ...
nwknoblauch's user avatar
0 votes
1 answer
98 views

writing a magit function that specifies the repo

I would like to write helper functions in elisp for putting dotfiles under version control using YADM. From their documentation I learned that I could call up the magit status buffer for the YADM ...
tom's user avatar
  • 111
0 votes
1 answer
107 views

Ignoring specific remotes when running `magit-log-popup` to log all branches

I would like to add an option in magit-log-popup to ignore a list of remotes when using "Log all branches" (l b). What I'm trying to do is something like this git log HEAD --branches --remotes --not -...
Leif Warland's user avatar