-
Notifications
You must be signed in to change notification settings - Fork 9.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
File renaming/moving support #13588
Comments
This is still an issue with v2.9.6 on Linux.
I know extra processing happens when you commit (with internal hashing and packing) but if it will show up as a |
@RefinedSoftwareLLC Can you reproduce this using the Git command line? If so, this is not an issue with GitHub Desktop. |
I can confirm on Windows that the same issue occurs, but is rather a git issue:
So I guess detection only runs during staging of the changed files. |
@sfadschm did you use git mv or rename through the GUI? (I don't know Window's equivalent of mv). If the latter, that's not a git issue, it has no way of knowing you renamed a file unless you explicitly tell it you did. |
Also secondly this feature would be really awesome. I found with my workflow I keep having to switch to the terminal to rename files manually with |
I used the Windows Explorer for renaming. I did not try git mv, but I would guess that files changed by this colmand will be displayed as a rename correctly, as they will be staged automatically. |
FWIW, I'll note that Atlassian SourceTree properly uses the 'git' renaming instead of a delete/add, keeping the history of the renamed file. Other than this 'move backwards', I've found GitHub Desktop to be more reliable that SourceTree. |
+1 coming from SourceTree it's an annoying issue to not be able to move or rename files in vs code or windows explorer and keep their history in tact. |
Removing the inconsequential change from the last push and renaming manually. This was my issue: desktop/desktop#13588
Describe the feature or problem you’d like to solve
Support for moving/renaming files.
I think it would be a useful idea to add a capability to rename/move files or at least detect when a file was renamed.
Currently if I rename a file it will detect as if that file has been deleted, and a new file has been added
This produces extra diffs and clogs up the history.
Proposed solution
This could be solved by either detecting file renames by looking at remove and add differences with the same contents
Or by implementing a rename/move dialog from inside Github Desktop.
Then it's just executing 'git mv src dst'.
Additional context
Thanks! :D
The text was updated successfully, but these errors were encountered: