magit Questions
6
Solved
I need to work with a few different git repositories. How to switch between them using magit? Magit allows me to choose a directory when I just start it.. But it is not clear for me how to switch t...
4
Solved
Magit is eating up a lot of my modeline to display the current git branch ... or at least I think it's magit that's doing so, honestly I can't find any way to tell where it's coming from. I can alw...
6
How do you list tracked files (git ls-files) in magit?
2
Solved
Magit is a good option for using Github. When I want to push my commits to Github, it always asks my username and password.
How can Emacs save my password?
Best regards.
1
I'm using Doom emacs with Magit in a repository leveraging husky to enforce commitizen
"husky": {
"hooks": {
"prepare-commit-msg": "exec < /dev/tty &&...
Carmella asked 24/1, 2021 at 10:53
5
Magit takes enormously long time to commit a file. Absolutely disproportional to any other task - can take several minutes, or else I give up and commit it from the shell. Is there any reason to it...
6
Solved
View the change history of a file using Git versioning talks about other ways of viewing history of a file in Git.
Can it be done in Emacs Magit?
2
Solved
In the magit-status buffer I can press d-wd on a file to open a magit-diff buffer with the diff of that specific file without whitespace changes. When I go back to magit-status though, the diffs th...
4
How can I get the diff between two commits of the same file using magit?
Directly form git one can do this. But I don't know how to do it from within magit. From magit-status it seems that d and D...
3
Solved
This answer shows how to see the differences between a specific file foo.bar in two different branches in git. My question is how to do this within magit?
1
Solved
magit seems to open a new ssh connection for every command. This becomes very annoying especially when staging more chunks, which takes noticeable time to establish the connection for each chunk.
...
8
Solved
I am using Magit to work with git in emacs. I have bound magit-status to a key, but every time I hit the key it opens in a split in lower half of the window and i have to hit C-x 1 to get it into a...
3
I have a rule in my .gitignore to ignore .pdf files in my current git repo. But I'd like to add a pdf in particular to my commit (example.pdf). I'm working with Emacs and Magit.
In a Linux termina...
2
I recently decided to switch from vim to spacemacs, which has already magit included. When working with Vim it is very easy to show :Gblame, and it shows vertical menu with commits, its author and ...
3
Solved
I have 2 edits very close by (and therefore part of the same hunk), that I'd like to commit separately. Is it possible to split a hunk from within magit?
2
Solved
How do I rename the last commit in Magit (ie. edit the commit message) ?
I can see it in magit-log-buffer-file, but I don't know how to interact with it.
1
Solved
If i'm looking at the log messages and select one specific commit to view the diff is it possible to revert (or reverse appply) a specific hunk of that commit? I know there is a revert commit optio...
2
Solved
what is the magit key sequence which is the equivalent of
git push origin :branch-to-be-deleted
that will cause the branch to be dropped from the remote repo.
2
Solved
Emacs (post v21) includes a function to delete trailing whitespace from a file. How would I make delete-trailing-whitespace available in the Magit staging area (from magit-status) so that I can rem...
Pa asked 21/11, 2013 at 17:3
3
Solved
I abhore manual, tedious and repetitive tasks as any normal developer should. Recently I realized - creating pull requests on numerous git repos taking up too much of my time. And most of the time ...
Transit asked 2/10, 2015 at 17:7
3
Solved
Say I've made a number of unrelated changes to uncoupled files in my git repo. I want to review and commit each of the files separately.
I run magit-status, and get a list of changed files. But th...
2
Solved
In the Magit Refs buffer, you can press tab on a branch (the branch I want to merge in) to see what commits would be added if this branch were merged into the currently checked out branch, and you ...
3
Solved
Is there a nice way to call git mv on a file from within magit? I know it's possible to run any git command with :, but this won't autocomplete filenames.
3
Solved
I use git-gutter for visualizing changes I make to version-controlled files, and magit for staging/committing/diffing etc.
When working on a project I usually keep a magit-status window open at al...
2
Solved
The question is about Magit major mode for Emacs function and less so about how to do this via command line interface.
I only have a local Git repository. How would I restore a selected file to it...
1 Next >
© 2022 - 2024 — McMap. All rights reserved.