Questions tagged [magit]

is an Emacs extension for the Git version control system.

Filter by
Sorted by
Tagged with
0
votes
0answers
11 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" '("...
0
votes
1answer
28 views

How to debug error in process sentinel?

I've recently switched to doom emacs, and for the most part it's working great. However, when I'm looking at a folder in dired-mode, if I copy a file using C the file is copied but *Messages* contains ...
0
votes
1answer
50 views

Corrupt Git configuration in magit

I updated My macOS to Monterey. After that, magit command yields "Corrupt Git configuration". I uninstall emacs and magit and install them again, but it does not resolve. How do I fix that?
0
votes
0answers
20 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 ...
0
votes
0answers
26 views

Magit is slow in a repository with many merge commits

This is one of the many company's repositories, and the apparent difference between this one and many others that work more or less fine is that it has a huge number of merge commits. The way CI is ...
0
votes
1answer
28 views

How to filter by author in magit-log?

In gitk you can for example do: gitk --author="Some Name" Is there a way to show/hide commits by author in the log view?
0
votes
0answers
22 views

Way to filter/search authors in magit-cherry

Most of the times I have to backport my commits to the upstream for that I need to only check the cherries which were authored by me, is there a way I can narrow them by the C-sing the author name? I ...
2
votes
2answers
57 views

Keeping track of "read" commits in magit?

When viewing commits in magit's log view, is there a way to treat commits in magit in a similar way to email? Where I can track their "read" status? (set unread, mark as read... etc). Is ...
1
vote
1answer
35 views

How to replace the diff output shown by magit?

Is there a way to switch out magit's diff display with a 3rd party output? I would like to use delta which has syntax highlighting & word-level diffs. Is there a way of integrating 3rd party ...
0
votes
1answer
30 views

How to diagnose invalid slot name in Magit Forge

I thought I had found a minor issue in Magit forge, and before reporting a bug I wished to update to the latest version. In the process I seem to have borked my installation. The value of my package-...
2
votes
1answer
61 views

What's this `slot-missing: Invalid slot name: "#<forge-database forge-database-156f3376b4d8>", :file`

I somehow messed up my magit/forge db, and now emacs won't forgive me. Now I can't open magit's status buffer, and sometimes not even a file buffer opens. This is all I can gather from the Messages ...
1
vote
1answer
73 views

company-mode popups and magit current region are dark while current theme is light

I've been successfully using lsp-mode and magit for a while with a light theme (leuven). Today I was messing with something seemingly unrelated (company-mode and auto-complete settings in my ~/.emacs ...
2
votes
1answer
42 views

magit equivalent of gitk's "touching paths"

I'd like to find commits touching specified path in a magit-log buffer. Gitk has this as a filter "touching paths". Is there a way to do this in Magit? I usually run gitk --all or gitk ...
0
votes
1answer
11 views

How to repeat last magit search and modify an option?

Searching through the git log with magit is a breeze. When I do a complex search, I may pass five arguments. If I then realize I want to search again with one option changed, how can I get all search ...
0
votes
0answers
30 views

MAGIT: meaning of magit status: head, rebase, push (git newbie)

In my magit status I see the following: Head: master Commit message Rebase: origin/master Commit message Push: origin/master Commit message I may have done something (pressed some keys) ...
1
vote
1answer
52 views

Add custom entry to magit-dispatch

One of the commands I find myself running very often is git grep. I would really like it to be accessible through the same magit menu as other commands. However, from my understanding of magit.el, it ...
0
votes
1answer
44 views

Emacs magit does not seem to push (No changes on github web. Tried both https and ssh)

In a local repo, I staged all my changes and added a commit message. Then, I pushed my commits using magit-push and pushed to my branch upstream origin/master. Right after I do that, the mini-buffer ...
2
votes
1answer
27 views

How can I assign labels/milestones when creating an issue/MR in Magit Forge?

Is there a way to assign labels and/or milestones when creating an issue or merge request in Magit Forge? I currently have to create the topic, and then edit it twice (once for labels, then for ...
0
votes
1answer
35 views

Load right version of Git while connecting to remote

I am currently working on a remote using Lmod for handling modules. I want to use Magit with the repositories on this remote, but the default system version of Git is 1.x. However, Git 2.18 is ...
0
votes
1answer
28 views

In Magit, the command `magit-status` opens the buffer with the status buffer. Is there some similar command to do the same but with the Slime's REPL?

I am using Emacs powered with Slime to write code on Common Lisp (SBCL). In addition, I am also using magit. Magit has a handy command called magit-status (C-x g). I use it a lot and I tend to have 2 ...
0
votes
1answer
25 views

provide optional parameter for magit

I am tracking my dotfiles by using this approach. This is very useful method to track files which are in different locations. Short summary of the blog. alias dotfiles='/usr/bin/git --git-dir=$HOME/....
3
votes
1answer
61 views

How to see only the local branches created by me on Magit?

When I am working on the Command Line Interface, I can do: $ git branch Then, I can see all the local branches that I have created. On Magit, If I do b l (check out local branch), there is a prompt ...
0
votes
0answers
22 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 ...
0
votes
0answers
18 views

Directory navigation in magit

I have a great experience working with a flat repository structure in magit. I find it more cumbersome to navigate in and out of directory structures when I want to some but not all of the files in a ...
0
votes
0answers
83 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&...
1
vote
1answer
18 views

Why this magit process happens after pushing some changes to a remote repository? How to avoid it?

After pushing some changes to a remote repository using magit, Emacs shows this process running: git-credenti... 72390 run *git-creden... /dev/pts/1 git credential-cache--daemon /home/pedro/....
3
votes
1answer
181 views

How to use `--no-edit` flag in a `git commit --amend` process inside magit?

If I am using the terminal, after staging some changes, I can do: git commit --amend --no-edit This will insert the staged changes on the previous commit. The editor to edit the message was not open ...
1
vote
1answer
175 views

Magit becomes very slow in spacemacs

I am a on and off spacemacs user for a long time but I have recently started working on some bigger projects and so I started investing some more time into improving my workflow and in particular I ...
0
votes
1answer
45 views

Ignore file encoding in diff

My magit diff is full of "differences" where there is no visually discernible change. I've adjusted every Magit Diff Option. Configuring magit to ignore line endings, tabs, whitespace, and ...
0
votes
0answers
20 views

How to run clean-up code once magit has completed a re-base operation?

My emacs customisation has grown some considerable hairballs while I've been writing helpers to update commits. The idea being that when I re-base I can tag all the commits that need updating and work ...
0
votes
0answers
28 views

Howto detect whether ssh server is online from elisp

When using magit-gerrit for git gerrit reviews and magit-gerrit-ssh-creds is set then magit-gerrit assumes that there is a gerrit server and tries to connect to it using ssh subprocess. The problem is ...
0
votes
1answer
42 views

Git track flag in Dired

How can I show an additional column in Dired, where I can see if the file is tracked or not by git in the current branch?
0
votes
0answers
24 views

Magit-transient: dynamic choices?

I am trying to make the choices in my transients dynamic but I cannot figure out how. Right now, the choices are only evaluated when loaded. Here's a static example: (define-infix-argument choice-rt ()...
1
vote
1answer
59 views

Why I am unable to squash these commits on magit?

I am trying to squash some commits using magit. I tried two different approaches choosing different commit ids to pick and squash. Despite the fact that none of them worked out, the error messages ...
0
votes
2answers
53 views

Retrieve file from an earlier commit

I am using Doom Emacs 2.0.9 on Emacs 27.2. I use magit to manage a local git repository. In an earlier commit, there was a file. In the latest commit as well as the current working tree, the file no ...
1
vote
1answer
37 views

Undo stage hunk in magit

If I accidentally staged a hunk that I wanted a better look at, how do I undo that action (the most recent action). C-/ does not work. Sure I can U to unstage all, but say all else staged is valid.
0
votes
1answer
66 views

How to install transient package?

...Magit depends on the dash, transient and with-editor libraries which are available from Melpa and Melpa-Stable. Install them using M-x package-install RET RET. Of course you may also install them ...
0
votes
1answer
39 views

Log with --first-parent option

How can I tell magit to use the --first-parent option? I only want to see commits onto this branch, none from merged branches.
2
votes
0answers
27 views

How do I jump to the previous/next modification (relative to the git HEAD) in the current file?

How do I jump to the previous/next modification (relative to the git HEAD) in the current file? Ideally, I like sth like swiper that lets me choose to easily jump between modifications.
0
votes
0answers
37 views

Automating git rebase and solve conflict

I have a script can solve some conflict on certain file. How can I automate the work flow to do the following? Run git rebase If has conflict, run script try to solve it. Then run git rebase --...
0
votes
0answers
34 views

Use all-the-icons in magit-repolist-column-flag-alist

I am trying to get magit-repolist-column-flag-alist to use icons from all-the-icons.el but with no success. This is the code I tried. (setq magit-repolist-column-flag-alist '((magit-untracked-files ....
0
votes
0answers
47 views

Duplicate headllines 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 ...
1
vote
1answer
157 views

How to copy commit hash from Magit status buffer?

After I open a Magit status buffer and make a commit, I commonly also want to copy that commit's hash (the shortened version) to my clipboard to post somewhere else. I can't work out how this should ...
1
vote
0answers
39 views

magit status buffer disappears

Magit status used to create a buffer with the buffer name magit: repo name. I recently upgraded Spacemacs and the Magit status buffer started to disappear whenever its window was not visible, and it ...
0
votes
0answers
30 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 ...
0
votes
0answers
13 views

How to show full diff when using `Limit to files` in log?

When showing the log, there is an option to limit the log to commits touching a set of files. The log itself is fine, but when I open any commit on the log, the diff of that commit is limited to the ...
0
votes
1answer
21 views

Complete in-progress merge with the --no-verify option

Often when I'm merge the upstream branch into my branch I'll need to fix up some merge conflicts. At that point I have an in-progress merge. When I fix the conflict and hit m to complete the merge ...
0
votes
0answers
57 views

Can magit truncate to 50/72 lines?

A common git style rule says that commit messages should be at most 50 characters long and commit descriptions at most 72. Can magit truncate the lines in the COMMIT_EDITMSG buffer in accordance with ...
2
votes
1answer
69 views

magit equivalent to `git push -u origin newLocalBranch`

I often create new branches locally (e.g., newLocalBranch), and then push them to the upstream remote origin, thus creating a new remote branch, using git push -u origin newLocalBranch. Is there a ...
3
votes
1answer
60 views

Magit status section with recent checkouts / visited branches?

In the same fashion magit can offer the list of recent commits in a section of status buffer. I'd like to have a list of recent checkout/visited branches to be able to quickly switch to it (M-xbb). ...

1
2 3 4 5
13