3 ms·
'git mv' for moving files, and I'm overly dependent upon 'git status' for checking what's changed.
by nostrademons 18y ago
'git mv' for moving files, and I'm overly dependent upon 'git status' for checking what's changed.
- gcv 18y agoAgreed on both points, although 'git mv' is optional. As long as the old file is 'git rm'ed and the new file is 'git add'ed in the same commit, git detects the rename quite reliably.
- jrockway 18y agomv is just sugar, though, you can easily copy the file using unix "cp" and delete/add to get the same result. Git does not track renames.
- etal 18y agoOr, just use the Unix mv, and let Git figure out what you did at the next "git add .".