I found another great tip from Leonardo Etcheverry. Sometimes I want to call magit-status
but the current buffer isn’t associated with the proper repository. That happens, for example, when I’m in the agenda buffer and want to commit one of the associated files that just got updated by Org. Usually, I just switch to a buffer with a file associated with the desired repository. That works but it’s a little inconvenient.
It turns out that if you put a list of your repositories in magit-repo-dirs
and call magit-status
with the universal argument prefix, magit
will prompt you for the repository. That’s really convenient; I can’t believe I’m just now learning about it.
Check out Etcheverry’s post for the details on how to set things up. I really love this tip.