Questions tagged [magit]
is an Emacs extension for the Git version control system.
715
questions
0
votes
1
answer
19
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 ...
1
vote
1
answer
21
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?
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 ...
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) ...
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 ...
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 ...
1
vote
1
answer
192
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:
...
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 ...
0
votes
1
answer
39
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 <&...
2
votes
1
answer
37
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, ...
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 ...
3
votes
1
answer
126
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 ...
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.
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 ...
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 ...