Rename or move a tracked file #4508
Unanswered
meenakshi-koushik
asked this question in
Q&A
Replies: 1 comment
-
There's no way to do that with lazygit. Part of the reason is that lazygit doesn't have any view for tracked files that are not modified, so you would only be able to do it for a file that already has modifications, because only then does it show up in the files panel. The other reason is that nobody bothered to implement it. 😄 What I do personally is to move or rename the file in my IDE (or text editor). It will then show up as deleted for the old one and untracked for the new one in lazygit. Simply stage both, and there's your rename. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Using git client, it's possible to use
git mv
to move a tracked file to a different path or just change its name. How can this be accomplished using lazygit ?Beta Was this translation helpful? Give feedback.
All reactions