Skip to main content

Questions tagged [magit]

is an Emacs extension for the Git version control system.

Filter by
Sorted by
Tagged with
0 votes
0 answers
17 views

Can I see Pull Request comments 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
  • 519
0 votes
1 answer
25 views

Magit: getting error "transient-setup: Symbol’s function definition is void: transient-prefix-object" after pressing "b" in magit buffer

I am new to Lisp and beginner in Emacs. I am running Magit from git repository. Since my organization doesn't allow downloading packages from Melpa/Elpa, I had to clone all dependencies manually under ...
Amit Tendulkar's user avatar
1 vote
1 answer
23 views

Save diff from Magit

Sometimes I want to create a diff file from within Magit and send it to someone else, just like I do with git diff > /tmp/a.diff. Can I do that in Magit?
Yasushi Shoji's user avatar
0 votes
1 answer
29 views

How do I create a new local Git branch based on a remote branch without also setting the remote branch as the upstream?

It used to be that every time I created a new feature branch with Magit, I would do this in the Magit buffer: Fetch from all remotes (f a) Change to my local master branch (b b master RET) Rebase ...
Sean's user avatar
  • 941
0 votes
0 answers
29 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
1 answer
68 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 ...
halloleo's user avatar
  • 1,355
0 votes
1 answer
16 views

How to investigate the overriding of a keymap?

In the magit commit message buffer, I once was able to get the previous commit message using M-p in evil edit mode. Exactly how it's expected. Now I'm required to enter into evil insert mode hitting i ...
jjk's user avatar
  • 746
1 vote
1 answer
200 views

How to provide updated 'seq' package to magit?

Recently I installed Debian (so I rewrote my emacs configuration file). I usually like to use use-package, because it makes the installation of packages simple. This is how I fetched magit from melpa: ...
Eldinur's user avatar
  • 13
0 votes
1 answer
75 views

magit slow with large files sitting around

I have six large .ipynb files in a git repo (100mb to 200mb each). They have diffs, but I don't want to check them in yet. The problem is that they seem to be the reason why magit becomes extremely ...
hjs's user avatar
  • 101
0 votes
1 answer
40 views

Tramp not reusing connections for Git commands

I am debugging a very slow performance of git commands over SSH, including via packages such as VC and Magit. Even using VC on emacs -Q is extremely slow. I get Tramp: Opening connection git for <&...
Arthur Colombini Gusmão's user avatar
2 votes
1 answer
38 views

restore / reset an indvidual hunk in my worktree from magit?

In magit, I can stage or unstage a single hunk (or even parts of a hunk). So those are operations on the index / staging area. How can I do the corresponding thing but on my working tree? For example, ...
Dan Drake's user avatar
  • 655
0 votes
0 answers
48 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
3 votes
1 answer
128 views

When merging conflicts in the smerge mode, how to select "mine" for all conflicts in the file?

When merging conflicts In smerge mode, how to select "mine" for all conflicts? At the moment I only know how to do it one by one with smerge-use-lower or C-c ^ l. Update: a possible solution ...
qazwsx's user avatar
  • 611
0 votes
2 answers
29 views

how to make magit log search case-insensitive

How would I make magit log searches case insensitive.. I see references in emacs to transient:magit-log-refresh:--regexp-ignore-case but not sure how to turn it on.
RoyM's user avatar
  • 135
0 votes
0 answers
22 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
2 votes
0 answers
43 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
  • 671
0 votes
1 answer
110 views

How add Evil keybindings to Magit, without removing all Magit prefix-keys

In magit status of a Git repository, you usually press f u to fetch from upstream (these keybindings in Magit will call magit-fetch-from-upstream). With Magit keybindings I have noticed the letters ...
ReneFroger's user avatar
  • 3,910
0 votes
0 answers
85 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
3 votes
2 answers
838 views

Seq-Keep is void when installing magit through use-package

I've been attempting to use magit but it keeps throwing an error that seq-keep is void. I started up emacs only installing use-package and magit and the issue persists. However, when I installed magit ...
NepNep-NepNep's user avatar
2 votes
0 answers
137 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
0 votes
0 answers
25 views

Magit: How turn SHA1's in commit messages into links?

Is there a way in magit to turn SHA1 hashes in the commit-message body into a clickable link? (currently it's necessary to click on the SHA1 and press Enter). Related to: How to follow commit hashes ...
ideasman42's user avatar
  • 8,935
2 votes
0 answers
172 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
1 vote
0 answers
36 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
0 votes
0 answers
24 views

How to programmatically set the same flag for multiple transient-values? [duplicate]

How can I programmatically set the same argument (e.g., --gpg-sign=abc123) for multiple transient-values? If I try the following, it seems that the value of adamliter/my-gpg-key-sign-git-arg does not ...
Adam Liter's user avatar
0 votes
1 answer
104 views

Push to GitHub via Magit retrieves error: "error in process sentinel: Symbol’s function definition is void: compat-assoc" but works. How to fix it?

I am using Magit in my Emacs. This is my config file. I have been using this package for a long time without issues. Recently, some weird error messages started to appear. After pressing to push a ...
Pedro Delfino's user avatar
0 votes
1 answer
81 views

Problem with UTF-8 characters in magit buffers

I have my Emacs working in a manjaro (based on arch linux) and the languaage set catalan. It is working well, but I had a problem with dired buffers showing weird symbols and solved adding this ...
anquegi's user avatar
  • 749
0 votes
0 answers
21 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
1 vote
2 answers
112 views

How to view only the current author in magit log? (as a toggle)

I would like a way to press a key binding that limits the git log to the author of the current commit. Pressing the same key again should clear the author field. Note that I'm aware of how to do this ...
ideasman42's user avatar
  • 8,935
0 votes
1 answer
77 views

magit log with more complex glob pattern for --remotes argument

I want to add a custom log option via (in init.el after some require magit package introduction): (defun magit-log-my-stuff (&optional args files) (interactive (magit-log-arguments)) "...
mscfd's user avatar
  • 11
0 votes
0 answers
62 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
1 vote
1 answer
184 views

How do I pop/apply selecting a file or hunks from file in stash using Magit?

I need to select some files or hunks in one file in existing stash entry using Magit, and then apply or pop them. How can that be done? The git command for a file (with 0 replaced by the relevant ...
OpenITeX's user avatar
  • 111
0 votes
1 answer
129 views

Magit Log for Directory (git log -p -- /)

In git, the following shows patchlog for a directory git log -p -- hukarz/ How can I do this in Magit?;) I found some patch for it, but has this been included in Magit? Here's the patch I found ...
Jason Hunter's user avatar
0 votes
1 answer
50 views

magit-reset-quickly does not work anymore

When in magit-status and having files in the "Unstaged changes" list I always could go to one of these files and press x to run magit-reset-quickly revert the changes on this file. But now ...
Witek's user avatar
  • 375
1 vote
0 answers
58 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
0 votes
1 answer
84 views

How to get Magit to show popup when launched

I am getting used to learning Magit and I am having to launch the pop-up every time I use Magit so I was wondering if there is a way to have it do that by default instead of after I hit C-c C-c? I ...
greenbug's user avatar
0 votes
1 answer
101 views

Magit commit gives "transient-setup: Wrong type argument: integer-or-marker-p, nil" message

I apologize if this is a noob-question, I have little experience with Git. I wanted to set up Magit for my projects, and I followed the "Getting Started" section of the Magit manual by ...
Alexander Praehauser's user avatar
8 votes
1 answer
2k views

DOOM Emacs: Error running hook "global-git-commit-mode" because: (void-variable transient-base-map)

Full error (on the bottom line): Error (doom-first-file-hook): Error running hook "global-git-commit-mode" because: (void-variable transient-base-map) Hello! I'm running this on an M1 chip ...
Krys's user avatar
  • 105
2 votes
2 answers
373 views

In magit, I want to (easily) see how a piece of code changes over time with commits

I'm curious if there's an easy way in Magit to see how a piece of code changes over time, i.e., with each commit. I'd like to have one window open in Emacs, focusing on the code/function I want to see ...
troglobit's user avatar
  • 123
0 votes
1 answer
66 views

Magit `zz` (stash both) does not allow whitespace in minibuffer

Sometimes when using command zz (stash both), the minibuffer to enter a stash message does not allow me to enter whitespace (e.g. space chars). I typically resolve to use dashes or underscores or even ...
Harald's user avatar
  • 328
1 vote
1 answer
427 views

How to checkout a Pull Request locally using Magit interface?

Suppose someone (not me) submitted a Pull Request on GitHub. Locally, I would like to run that work. Hence, I need to have the code locally. Following this documentation, I can achieve that in the ...
Pedro Delfino's user avatar
0 votes
1 answer
203 views

Magit aborts commit that runs with husky precommit hook but the commit works on the command line

I'm a bit a bit stumped by an annoying problem that I'm having with magit. I'm working in a monorepo (lerna) repository that uses husky to run a precommit hook. The hook runs on packages that have ...
fraxture's user avatar
  • 338
0 votes
0 answers
37 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
  • 919
1 vote
1 answer
147 views

In Magit, how can I quickly diff changes in the current file since my last own commit?

When collaborating with others, I often need to check what others have changed in a file since I last worked on it. Is there an easy way in magit to do this? I.e. show the diff between my last own ...
tmalsburg's user avatar
  • 2,570
0 votes
1 answer
24 views

How to change the commit associated to a tag on a branch that has already been pushed to GitHub?

I have attributed a tag called origin/v0.4.9 for a specific commit on a GitHub Pull Request. I thought the PR was simple, stable, and "a certainty" to be merged really fast. I was wrong. I ...
Pedro Delfino's user avatar
1 vote
1 answer
45 views

When a merge-conflict happens and two options are shown, what is the magit command that allows the user to easily pick one of them?

Suppose a merge conflict happens. There are two options shown the upper (in red) and the lower (in green): I would like to avoid complex ediff-mode stuff to pick one. I have seen some tutorial where ...
Pedro Delfino's user avatar
1 vote
0 answers
83 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
0 votes
1 answer
236 views

Why can't I solve this merge conflict on Magit?

I am working on a feature via Pull Request. While I was working, main branch evolved. Now, I want to put my changes on the Pull Request on top of latest main branch. This means I want to rebase. Hence,...
Pedro Delfino's user avatar
0 votes
1 answer
53 views

Toggle visibility of unchanged files in magit-status

I want to rename a number of tracked but unchanged files via magit. I know that I can use R (magit-file-rename). However, magit-status does not show me unchanged files. How can I toggle the visibility ...
loris's user avatar
  • 315
2 votes
2 answers
103 views

When I do `magit-process-buffer` (`$`) it shows an ellipsis (`…`). What is behind the `ellipsis`?

I wanted to investigate the difference between magit-branch-and-checkout (b c) and magit-branch-spinoff (b s), so I invoked the Magit output buffer with $. I see the following output: 0 git … ...
Alessandro Bertulli's user avatar
1 vote
1 answer
62 views

Can I tell magit to show untracked files with a repo .git/config that tells it not to?

In my repo's .git/config I have status.showUntrackedFiles set to no (for performance, because it's a very large repo). However, sometimes (e.g. before I push to remote) I'd like to manually check, ...
Patrick's user avatar
  • 113

1
2 3 4 5
15