Questions tagged [magit]
is an Emacs extension for the Git version control system.
26
questions with no upvoted or accepted answers
2
votes
1answer
30 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).
...
2
votes
1answer
76 views
How to disable magit on remote files with tramp?
I'm working with Emacs on windows, I usually work locally, but I want to disable magit when I'm working on a remote file.
I'm trying to add a hook that disables magit when it detects that the file is ...
2
votes
0answers
51 views
How to deal with user arguments with magit transients?
I understand the infix flags work. However, I'm not sure how best to work with argument inputs. I have read the docs as well as looked at some examples from the magit source code but it's still a ...
2
votes
1answer
35 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
0answers
19 views
APIs to create a custom issue list on Magit Forge?
Using Magit Forge, I'd like to organize a list of open issues by assignee. Ideally I'd like to display them in groups by assignee, but I'd settle for a single list if the assignee were added to the ...
1
vote
1answer
51 views
Can magit stage a hunk / selected lines in 'diff-mode'?
Is it possible to stage the current hunk or selected lines of the hunk in diff-mode?
For example, when in diff-mode, what command can I run to stage the current hunk?
1
vote
1answer
46 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-...
0
votes
1answer
36 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 ...
0
votes
0answers
24 views
How to take line from recent commit with Magit
Use Magit to view the log with show diffs (-p).
Inspect 4 commit old commit.
Navigate to a few lines I've since deleted, but want back my project.
I can mark the lines but cannot copy them, which ...
0
votes
0answers
13 views
Smerge: clearer refine mode?
I'm using doom+magit to deal with git, and I have smerge configured to change in-file conflicts. When I enable the smerge refine mode to highligh changes on a per-word basis, I find that refines works ...
0
votes
0answers
13 views
Smerge: auto-resolve LaTeX-like git conflicts
I'm using doom emacs + magit, and it enables smerge for me to display nicely my conflicts. I just saw that smerge has a function smerge-resolve to automatically resolve conflicts. I'd like to use it ...
0
votes
0answers
51 views
Getting the TAB key to work the same in Doom as in Spacemacs
When using the TAB key in a magit status/overview buffer, it says: Buffer is read-only.
If I manually disable read-only mode, the pressing TAB indents the text instead of expanding or contracting ...
0
votes
0answers
18 views
How to git stage a just-tangled file in `org-babel-post-tangle-hook`
I want to create a org-babel-post-tangle-hook that does a git stage buffer-file-name. There is a boring technical issue I have, which is that I don't know how to call magit-stage-file from elisp so ...
0
votes
0answers
17 views
Local magit revives all stale tramp connections
I'm using long-living emacs sessions using emacs in daemon mode, and I use tramp quite extensively. I usually have several buffers in the background which use tramp, but since my system has been ...
0
votes
0answers
7 views
How to remove all labels from a topic in forge
How can I remove all labels from an issue or PR in forge? When I trigger the edit-label minibuffer and clear its contents, then hit enter, the labels are not removed.
I can see that forge is first ...
0
votes
0answers
25 views
Closing magit's visit-file/blob window doesn't return focus back to magit
If Magit's log is open and you hit RET on any of the commits, it opens a visit file/blob window where you can see the diff with some details. There's a few ways to do it, but I believe in Doom Emacs ...
0
votes
0answers
31 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
25 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
0answers
36 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
73 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
37 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
25 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
67 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
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
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 -...