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...
Phagocyte asked 21/2, 2014 at 10:34

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...
Lotz asked 22/12, 2014 at 17:27

6

How do you list tracked files (git ls-files) in magit?
Jocundity asked 28/7, 2014 at 11:3

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.
Thymic asked 3/9, 2014 at 21:30

1

I'm using Doom emacs with Magit in a repository leveraging husky to enforce commitizen "husky": { "hooks": { "prepare-commit-msg": "exec < /dev/tty &&amp...
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...
Capreolate asked 2/6, 2013 at 15:41

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?
Torras asked 16/1, 2013 at 7:1

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...
Communicant asked 16/12, 2019 at 23:43

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...
Soke asked 15/5, 2013 at 11:37

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?
Remit asked 3/5, 2013 at 12:27

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. ...
Feuchtwanger asked 13/5, 2019 at 4:22

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...
Coal asked 24/2, 2012 at 23:49

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...
Board asked 17/10, 2016 at 16:10

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 ...
Paget asked 17/12, 2015 at 9:54

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?
Plane asked 1/3, 2012 at 18:35

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.
Rockafellow asked 2/10, 2015 at 8:14

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...
Illustrate asked 20/3, 2018 at 9:5

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.
Affricative asked 14/2, 2018 at 21:6

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...
Kalman asked 22/7, 2013 at 21:53

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 ...
Watersick asked 4/10, 2016 at 23:31

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.
Chough asked 12/7, 2013 at 8:7

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...
Viva asked 28/4, 2014 at 15:3

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...
Sybille asked 16/6, 2013 at 9:4

© 2022 - 2024 — McMap. All rights reserved.