Questions tagged [magit]

is an Emacs extension for the Git version control system.

Filter by
Sorted by
Tagged with
0
votes
0answers
4 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 ...
1
vote
1answer
32 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 ...
1
vote
1answer
30 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 ...
0
votes
1answer
26 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
0answers
34 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
2answers
62 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 ...
8
votes
1answer
2k views

How to checkout a specific commit inside magit?

Inside the magit log history, I can see the list of commits. How do I roll back to a specific commit from the list? I can move to that commit and use d to see the diff/change of that commit, but I do ...
3
votes
1answer
481 views

How to use Magit to git log / git grep to find expressions across all previous commits

I am using Magit and was wondering how to revert to a specific commit that contained a specific expression. First I need to find the expression across all commits content. How to do this? In command ...
0
votes
0answers
34 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
1answer
123 views

Magit git commit isn't working on spacemacs

After installing Magit in spacemacs. I used Helm to create a git repository. I added some files to stage then tried to commit. Let me know if I'm doing something wrong or it's just an issue. I get: ...
2
votes
1answer
36 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
8 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 ...
3
votes
1answer
45 views

Context-aware username (e.g., git username instead of login name) in time-stamp

I am a total emacs/elisp newbie and I can't figure out how to do this. I have time-stamp-active t with a pretty standard format: time-stamp-format "Last modified %Y-%02m-%02d %02H:%02M:%02S ...
1
vote
1answer
45 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
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) ...
16
votes
2answers
6k views

Magit diff side by side

I would like to know if there is a way to get the standard side by side diff view in magit. That is, instead of seeing the old code chunk and the new one one after the other, I'd like to see them on ...
0
votes
1answer
42 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 ...
0
votes
1answer
30 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 ...
1
vote
1answer
19 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 ...
1
vote
1answer
44 views

Force magit to ask for confirmation before deleting a branch

I would like to have magit ask for confirmation when I've told it to delete a particular branch. Currently it seems that magit considers the selection of a branch to delete to be the confirmation, as ...
5
votes
1answer
410 views

How to change the default transient level temporarily? ("Show hidden magit commands")

Many commands that are rarely used in magit are hidden by default. Magit uses the transient.el library for popups and the visibility of infix and suffix commands are controlled by transient-default-...
52
votes
4answers
12k views

How to easily cherry pick with magit?

I've been using magit for a few months now and I like it a lot. But one thing I still do it in a terminal is cherry picking. What is a simple way to do this?
0
votes
1answer
84 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 -...
1
vote
1answer
57 views

How to apply a hunk of changes in diff to current branch?

I have two branches, let's say branch a and b, I would like to apply some changes from b to a. Note that I use magit-diff to show the differences between the two branches. Then I would like to apply ...
0
votes
1answer
24 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/....
0
votes
1answer
26 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 ...
3
votes
1answer
56 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
66 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&...
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 ...
1
vote
1answer
17 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
161 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
142 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
38 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
26 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
34 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
20 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
50 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
49 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
36 views

Pull from git before applying org-capture?

I'm using org-capture to take project-specific notes by having a notes file in each of several git repositories. Looking forward, however, I can see danger here: if I'm working on project (1) and I ...
1
vote
1answer
738 views

How to save remote repo credentials

Linux Mint Emacs 25.1 Remote repo URL origin (h t t p://git.remotehostname.git) In application SmartGit when I pull/push data from remote repo, it's prompt credentials ONLY ONCE. But when I try ...
3
votes
2answers
289 views

How can I navigate up/down a log from magit-rev-mode?

When I'm reviewing a patch series in magit I want to be able to look in detail at each patch in a tree. However there doesn't seem to be an easy way to navigate to the next/previous commit from inside ...
0
votes
1answer
48 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
36 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.
1
vote
1answer
54 views

Magit configuration file location on Mac

I want to reset Magit defults for particular pop up that was previously saved using magit-popup-save-default-arguments (https://magit.vc/manual/magit-popup.html). Where is the file created by magit-...
2
votes
0answers
26 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.
2
votes
2answers
413 views

Magit: Is it possible to edit text directly in "Unstaged changes"?

Windows 10, Emacs 25.1, Magit Execute command magit-status and press "TAB". Here result: If I want to change this text I go to my editor (e.g. Notepad++) and edit text. The question is: Can I ...
1
vote
1answer
88 views

Integrate Magit with ssh-ident

Recently I was looking at utilities for handling ssh-agent at an even higher level, so that entering SSH keys passphrases becomes even more seamless than with the standard ssh-agent utility. One such ...

1
2 3 4 5
13