Questions tagged [magit]
is an Emacs extension for the Git version control system.
579
questions
0
votes
0answers
20 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 ...
0
votes
1answer
20 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 ...
0
votes
1answer
17 views
magit on Windows over plink tramp
I'm scratching my head on this problem, but I cannot seem to use magit on a project served over plink or plinkx on Windows.
What does work:
The windows client can use magit on a project stored ...
0
votes
1answer
34 views
Why magit use rectangle on origin/master and not only on master?
I have done a branch checkout on master but magit rectangle is on origin/master and not only on master.
0
votes
0answers
34 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 ...
0
votes
0answers
46 views
How to use authinfo credentials with Magit to push/pull to Overleaf
Overleaf allows git for some users. I have been using emacs and magit with overleaf since some time by providing username-password at each git push or git pull.
What I want
Now I want to configure ...
0
votes
1answer
40 views
Can Emacs be set to auto-stage (preferably with --intent-to-add) new files?
I often add a new file to a repo, make some other changes, then stage all, and commit all, forgetting that the new file is not yet tracked, so is not included in the stage all step. At least one ...
0
votes
1answer
36 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
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 ...
0
votes
1answer
52 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:
...
0
votes
0answers
35 views
magit, understand magit-blame
When I enter magit-blame it shows the following lines.
jihae 2020-04-07 14:51 ė¶ķģķ ķģ¼ ģģ , yarn ė¹ ģ§ ė¶ė¶ ģ¶ź°, public path
Eugene Kim 2020-06-04 17:50 config
process.env.__DEV__ = ...
0
votes
1answer
70 views
Unable to push into Github using Magit
When I try to push into my remote repository, the mini buffer says Running git push -v origin master:refs/heads/master but nothing else happens.
Following the manual, I have staged, committed, and ...
0
votes
1answer
42 views
Magit remove local branches that were merged into another branch
Explaining the problem more in-depth than the titular definition:
Often I merge branches into master and want to prune based on that. M-p works fantastic for removing the remote branches (eg origin/...
0
votes
1answer
44 views
Magit forge: updating the branch of a pull request
Does forge support updating the branch of a PR?
Suppose that I checked out a PR branch with b y, and afterwards there were additional commits into this PR.
It seems that I cannot pull these new ...
0
votes
1answer
49 views
Magit error on magit-remote-add
On windows 7 version of spacemacs, with git layer, magit fails when trying to add a remote repository. After I enter the remote name, I get the following error:
Debugger entered--Lisp error: (wrong-...
0
votes
1answer
83 views
Error in newly installed magit -head branch header wrong type argument
I just installed the magit package in emacs 26.3 (using CentOS 7 OS). When I start it with M-x magit, I get the error below. It works fine for me in an older installation, and the only difference I ...
0
votes
0answers
55 views
Unable to create a new commit using Magit on Windows
trying to commit using "M-x magit-status" followed by "c c", keep getting the following:
1 git.exe ⦠"commit" "--"
Aborting commit due to empty commit message.
sh -c 'printf WITH-EDITOR:: $$: No such ...
0
votes
1answer
241 views
magit commit does not permit adding a gpg signature
I am failing to run gpg to sign commits, after doing so successfully before an upgrade to Mojave and an upgrade to Emacs. (I am not sure when I lost the ability to sign files in the past year.)
When ...
0
votes
0answers
261 views
Use ssh-agent's SSH_AUTH_SOCK value, not macOS' one [duplicate]
When I run (getenv "SSH_AUTH_SOCK"), I get "/private/tmp/com.apple.launchd.K9OEFgxDgw/Listeners".
I want to set it to the value that is returned by echo $SSH_AUTH_SOCK on the command line which is ...
0
votes
1answer
77 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 -...
0
votes
1answer
59 views
How can I get git-gutter:next-hunk to NOT loop around at buffer bottom?
As per the title, I would like to stop processing at the end of a buffer and not loop around to the top. I find it easier to keep track of what I am doing that way. TIA.
0
votes
1answer
151 views
Magit: enable `toggle-truncate-line` in diff-mode
I'm working with tex files that have usually long lines of text. I enabled in magit the fine coloration of errors by using:
(setq-default magit-diff-refine-hunk 'all)
and now I'd like to disable the ...
0
votes
1answer
303 views
magit-status does not highlight diffs
I'm currently seeing a display problem in Magit. For a while I've seen that when I do magit-status, the diffs are no longer highlighted. I didn't care for a while, thinking it was the theme I've been ...
0
votes
0answers
34 views
Magit: Can offer cursor commit? [duplicate]
Here my git log:
As you can see on top window the cursor is over commit "settings". And when I enter command:
magit-reset-soft
I wait that Magit will offer me the next candidate:
Soft reset to : ...
0
votes
1answer
237 views
Can't commit on Windows using magit
I keep getting the following error
1 c:/Program Files (x86)/Git/bin/git.exe ⦠"commit" "--amend"
*ERROR*: Wrong type argument: stringp, nilerror: There was a problem with the editor '"c:/...
0
votes
1answer
71 views
Emacs init file with yasnippets and magit submodule update error
I have cloned yasnippets repo repo in ~/.emacs.d/yasnippet-snippets.
I would like to synchronize it each time I start Emacs (btw, it would be nice to do it only if there is a connection available), my ...
-1
votes
1answer
383 views
Magit fails to create local repository
This is what I got when I select a directory (whether it had a git repository) and choose "yes" when magit asks if I want to create one:
Debugger entered--Lisp error: (wrong-type-argument stringp nil)...
-1
votes
1answer
197 views
Magit: add a full directory with magit-status
How can I add a full new directory with magit-status? When trying to stage a new directory from the magit-status buffer, pressing s, I can only add individual files within the directory, but not the ...
-3
votes
2answers
380 views
What is the meaning of “Push” in Magit status buffer? [closed]
In a way completely detached from those commands in Git, Magit displays this:
Head: heroku-master Added curl-based test, GPG and bulk inserts
Merge: heroku/master Added curl-based test, GPG ...